diff options
author | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2007-10-31 15:46:57 +0000 |
---|---|---|
committer | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2007-10-31 15:46:57 +0000 |
commit | 372150de4abc28b77975ac54eb2a67cb343a45dc (patch) | |
tree | 6c069b6269cefd69dc6594a1d360ab761ef9c10d /pow.c | |
parent | 5c06717a432d9017d47ed8a48cd56ebd9a1eb396 (diff) | |
download | mpfr-372150de4abc28b77975ac54eb2a67cb343a45dc.tar.gz |
Untabified and removed trailing spaces.
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@4933 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'pow.c')
-rw-r--r-- | pow.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -295,7 +295,7 @@ mpfr_pow (mpfr_ptr z, mpfr_srcptr x, mpfr_srcptr y, mp_rnd_t rnd_mode) /* now we have: (1) either x > 0 - (2) or x < 0 and y is an integer + (2) or x < 0 and y is an integer and in addition |x| <> 1. */ @@ -378,7 +378,7 @@ mpfr_pow (mpfr_ptr z, mpfr_srcptr x, mpfr_srcptr y, mp_rnd_t rnd_mode) return inexact; } - /* Special case (+/-2^b)^Y which could be exact. If x is negative, then + /* Special case (+/-2^b)^Y which could be exact. If x is negative, then necessarily y is a large integer. */ if (mpfr_cmp_si_2exp (x, MPFR_SIGN(x), MPFR_GET_EXP (x) - 1) == 0) { @@ -386,7 +386,7 @@ mpfr_pow (mpfr_ptr z, mpfr_srcptr x, mpfr_srcptr y, mp_rnd_t rnd_mode) mp_exp_t b; int sgnx = MPFR_SIGN(x); - /* now x = +/-2^b, so x^y = (+/-)^y*2^(b*y) is exact whenever b*y is + /* now x = +/-2^b, so x^y = (+/-)^y*2^(b*y) is exact whenever b*y is an integer */ b = MPFR_GET_EXP (x) - 1; /* x = +/-2^b */ mpfr_init2 (tmp, MPFR_PREC (y) + BITS_PER_MP_LIMB); |