diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | sysdeps/ieee754/dbl-64/mpexp.c | 6 |
2 files changed, 8 insertions, 3 deletions
@@ -1,3 +1,8 @@ +2013-01-18 Siddhesh Poyarekar <siddhesh@redhat.com> + + * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove unnecessary + multiplication. + 2013-01-17 David S. Miller <davem@davemloft.net> * sysdeps/sparc/fpu/libm-test-ulps: Update. diff --git a/sysdeps/ieee754/dbl-64/mpexp.c b/sysdeps/ieee754/dbl-64/mpexp.c index aca6bf6457..811fb465a1 100644 --- a/sysdeps/ieee754/dbl-64/mpexp.c +++ b/sysdeps/ieee754/dbl-64/mpexp.c @@ -103,14 +103,14 @@ __mpexp (mp_no *x, mp_no *y, int p) a *= RADIXI; for (; i > EX; i--) a *= RADIX; - b = X[1] * RADIXI; + b = X[1]; m2 = 24 * EX; - for (; b < HALF; m2--) + for (; b < HALFRAD; m2--) { a *= TWO; b *= TWO; } - if (b == HALF) + if (b == HALFRAD) { for (i = 2; i <= p; i++) { |