diff options
author | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2005-08-18 16:35:19 +0000 |
---|---|---|
committer | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2005-08-18 16:35:19 +0000 |
commit | bab5aab404897a12fe1c87734ebf2aa270b9b73b (patch) | |
tree | 73ab96f558e7e0b4ef371902ead983189184a0f7 /ui_pow_ui.c | |
parent | 8328a51518450ad8ddb86e38e7952e28065ff22a (diff) | |
download | mpfr-bab5aab404897a12fe1c87734ebf2aa270b9b73b.tar.gz |
Converted tabs to spaces with expand.
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@3725 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'ui_pow_ui.c')
-rw-r--r-- | ui_pow_ui.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/ui_pow_ui.c b/ui_pow_ui.c index 5754a96b7..ea1be6b89 100644 --- a/ui_pow_ui.c +++ b/ui_pow_ui.c @@ -65,20 +65,20 @@ mpfr_ui_pow_ui (mpfr_ptr x, unsigned long int y, unsigned long int n, err = 1; /* now 2^(i-1) <= n < 2^i: i=1+floor(log2(n)) */ for (i -= 2; i >= 0; i--) - { - inexact |= mpfr_mul (res, res, res, GMP_RNDU); - err++; - if (n & (1UL << i)) - inexact |= mpfr_mul_ui (res, res, y, GMP_RNDU); - } + { + inexact |= mpfr_mul (res, res, res, GMP_RNDU); + err++; + if (n & (1UL << i)) + inexact |= mpfr_mul_ui (res, res, y, GMP_RNDU); + } /* since the loop is executed floor(log2(n)) times, we have err = 1+floor(log2(n)). Since prec >= MPFR_PREC(x) + 4 + floor(log2(n)), prec > err */ err = prec - err; if (MPFR_LIKELY (inexact == 0 - || MPFR_CAN_ROUND (res, err, MPFR_PREC (x), rnd))) - break; + || MPFR_CAN_ROUND (res, err, MPFR_PREC (x), rnd))) + break; /* Actualisation of the precision */ MPFR_ZIV_NEXT (loop, prec); |