summaryrefslogtreecommitdiff
path: root/pow.c
diff options
context:
space:
mode:
authorvlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2007-11-03 02:05:04 +0000
committervlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2007-11-03 02:05:04 +0000
commitd2a7ac24e8937785c7bf9c89d34753e1af2fa9f3 (patch)
treeb4e72e1088bd613edf40d8ae8324c7d30dfa5dc4 /pow.c
parent61e1ece31320999fa817e0ee9134f56e7fca2620 (diff)
downloadmpfr-d2a7ac24e8937785c7bf9c89d34753e1af2fa9f3.tar.gz
pow.c: added FIXME comment.
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@4939 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'pow.c')
-rw-r--r--pow.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/pow.c b/pow.c
index 862430aa4..d98c8155f 100644
--- a/pow.c
+++ b/pow.c
@@ -437,6 +437,10 @@ mpfr_pow (mpfr_ptr z, mpfr_srcptr x, mpfr_srcptr y, mp_rnd_t rnd_mode)
}
/* General case */
+ /* FIXME: handle the case where x is negative (which implies that y is
+ a very large integer). One needs to take the absolute value of x and
+ update the error analysis because one can have Nt < PREC(x). The sign
+ of the result is obtained from MPFR_IS_NEG (x) && is_odd (y). */
{
/* Declaration of the intermediary variable */
mpfr_t t, u, k;