diff options
author | Siddhesh Poyarekar <siddhesh@redhat.com> | 2013-01-18 11:14:34 +0530 |
---|---|---|
committer | Siddhesh Poyarekar <siddhesh@redhat.com> | 2013-01-18 11:14:34 +0530 |
commit | d3b9ea614822b66f88ba6815a2d2c6cf63922cd7 (patch) | |
tree | 0826f91dac364bc2612a99a1ae1ad290c6eb9d57 | |
parent | 1dbaee3c12d6a1310b45a390edc2d06df61493fa (diff) | |
download | glibc-d3b9ea614822b66f88ba6815a2d2c6cf63922cd7.tar.gz glibc-d3b9ea614822b66f88ba6815a2d2c6cf63922cd7.tar.xz glibc-d3b9ea614822b66f88ba6815a2d2c6cf63922cd7.zip |
Remove unnecessary multiplication with RADIXI
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | sysdeps/ieee754/dbl-64/mpexp.c | 6 |
2 files changed, 8 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog index 6ca7a8b48b..1d17c4d428 100644 --- a/ChangeLog +++ b/ChangeLog @@ -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++) { |