summaryrefslogtreecommitdiff
path: root/pow_ui.c
diff options
context:
space:
mode:
authorzimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4>2009-03-03 16:51:07 +0000
committerzimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4>2009-03-03 16:51:07 +0000
commitf5f7883fc7cf47d38ed493a882fd7109bdd589bb (patch)
tree1058cf0d07593fa2cec9f32b4988ac40611b4bff /pow_ui.c
parentcbd40e1cb659b579e608afbe7a05da5b15a860be (diff)
downloadmpfr-f5f7883fc7cf47d38ed493a882fd7109bdd589bb.tar.gz
GMP_RNDX -> MPFR_RNDX
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@6053 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'pow_ui.c')
-rw-r--r--pow_ui.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/pow_ui.c b/pow_ui.c
index 29f8c5b24..cc10e20d6 100644
--- a/pow_ui.c
+++ b/pow_ui.c
@@ -91,7 +91,7 @@ mpfr_pow_ui (mpfr_ptr y, mpfr_srcptr x, unsigned long int n, mp_rnd_t rnd)
+ MPFR_INT_CEIL_LOG2 (MPFR_PREC (y));
mpfr_init2 (res, prec);
- rnd1 = MPFR_IS_POS (x) ? GMP_RNDU : GMP_RNDD; /* away */
+ rnd1 = MPFR_IS_POS (x) ? MPFR_RNDU : MPFR_RNDD; /* away */
MPFR_ZIV_INIT (loop, prec);
for (;;)
@@ -105,13 +105,13 @@ mpfr_pow_ui (mpfr_ptr y, mpfr_srcptr x, unsigned long int n, mp_rnd_t rnd)
err = prec - 1 - (mpfr_prec_t) i;
/* First step: compute square from x */
MPFR_BLOCK (flags,
- inexact = mpfr_mul (res, x, x, GMP_RNDU);
+ inexact = mpfr_mul (res, x, x, MPFR_RNDU);
MPFR_ASSERTD (i >= 2);
if (n & (1UL << (i-2)))
inexact |= mpfr_mul (res, res, x, rnd1);
for (i -= 3; i >= 0 && !MPFR_BLOCK_EXCEP; i--)
{
- inexact |= mpfr_mul (res, res, res, GMP_RNDU);
+ inexact |= mpfr_mul (res, res, res, MPFR_RNDU);
if (n & (1UL << i))
inexact |= mpfr_mul (res, res, x, rnd1);
});