aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSiddhesh Poyarekar <siddhesh@redhat.com>2013-01-18 11:14:34 +0530
committerSiddhesh Poyarekar <siddhesh@redhat.com>2013-01-18 11:14:34 +0530
commitd3b9ea614822b66f88ba6815a2d2c6cf63922cd7 (patch)
tree0826f91dac364bc2612a99a1ae1ad290c6eb9d57
parent1dbaee3c12d6a1310b45a390edc2d06df61493fa (diff)
downloadglibc-d3b9ea614822b66f88ba6815a2d2c6cf63922cd7.zip
glibc-d3b9ea614822b66f88ba6815a2d2c6cf63922cd7.tar.gz
glibc-d3b9ea614822b66f88ba6815a2d2c6cf63922cd7.tar.bz2
Remove unnecessary multiplication with RADIXI
-rw-r--r--ChangeLog5
-rw-r--r--sysdeps/ieee754/dbl-64/mpexp.c6
2 files changed, 8 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 6ca7a8b..1d17c4d 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 aca6bf6..811fb46 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++)
{