summaryrefslogtreecommitdiff
path: root/pow_si.c
diff options
context:
space:
mode:
authorvlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2008-08-07 16:30:13 +0000
committervlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2008-08-07 16:30:13 +0000
commit7f5781fc2b82818929b622c12c0839beb662505e (patch)
treee1fe61423ad365ea8824467205f5e7d1cfdf08bc /pow_si.c
parente086a14154298a1f1d87e162cff3c487a37793c3 (diff)
downloadmpfr-7f5781fc2b82818929b622c12c0839beb662505e.tar.gz
pow_si.c: fixed Ziv's iteration (code from r3305) by using MPFR_ZIV_NEXT
(problem detected by icc, because variable "loop" was never used). git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@5490 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'pow_si.c')
-rw-r--r--pow_si.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pow_si.c b/pow_si.c
index 6581fcb8d..f4e4c1e40 100644
--- a/pow_si.c
+++ b/pow_si.c
@@ -180,7 +180,7 @@ mpfr_pow_si (mpfr_ptr y, mpfr_srcptr x, long int n, mp_rnd_t rnd)
break;
/* actualisation of the precision */
- Nt += BITS_PER_MP_LIMB;
+ MPFR_ZIV_NEXT (loop, Nt);
mpfr_set_prec (t, Nt);
}
MPFR_ZIV_FREE (loop);