about summary refs log tree commit diff
diff options
context:
space:
mode:
authorSiddhesh Poyarekar <siddhesh@redhat.com>2013-01-02 17:43:35 +0530
committerSiddhesh Poyarekar <siddhesh@redhat.com>2013-01-02 17:43:35 +0530
commit0f5477af5df459af5c1cfa0fe28c158418307ff8 (patch)
tree9b47acb364cb384e26be6330fb998dc148a60288
parent44e0d4c20ce5bf3825897e5d4b7caae94016214d (diff)
downloadglibc-0f5477af5df459af5c1cfa0fe28c158418307ff8.tar.gz
glibc-0f5477af5df459af5c1cfa0fe28c158418307ff8.tar.xz
glibc-0f5477af5df459af5c1cfa0fe28c158418307ff8.zip
Fix values in __mpexp_twomm1
-rw-r--r--ChangeLog3
-rw-r--r--sysdeps/ieee754/dbl-64/mpexp.h16
2 files changed, 11 insertions, 8 deletions
diff --git a/ChangeLog b/ChangeLog
index 78acd020f2..b1e4816e3a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2013-01-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
 
+	* sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_twomm1): Fix first
+	four values.
+
 	* sysdeps/ieee754/dbl-64/mpa.c (__mul): Split mantissa
 	calculation loop and add branch prediction.
 
diff --git a/sysdeps/ieee754/dbl-64/mpexp.h b/sysdeps/ieee754/dbl-64/mpexp.h
index 59f5c6786e..44f509db55 100644
--- a/sysdeps/ieee754/dbl-64/mpexp.h
+++ b/sysdeps/ieee754/dbl-64/mpexp.h
@@ -33,10 +33,10 @@ extern const number __mpexp_twomm1[33] attribute_hidden;
 #ifdef BIG_ENDI
   const number
 	__mpexp_twomm1[33] = {                     /* 2**-m1 */
-/**/                  {{0x00000000, 0x00000000} }, /* 0      */
-/**/                  {{0x00000000, 0x00000000} }, /* 0      */
-/**/                  {{0x00000000, 0x00000000} }, /* 0      */
-/**/                  {{0x00000000, 0x00000000} }, /* 0      */
+/**/                  {{0x3ff00000, 0x00000000} }, /* 1      */
+/**/                  {{0x3ff00000, 0x00000000} }, /* 1      */
+/**/                  {{0x3ff00000, 0x00000000} }, /* 1      */
+/**/                  {{0x3ff00000, 0x00000000} }, /* 1      */
 /**/                  {{0x3ee00000, 0x00000000} }, /* 2**-17 */
 /**/                  {{0x3e800000, 0x00000000} }, /* 2**-23 */
 /**/                  {{0x3e800000, 0x00000000} }, /* 2**-23 */
@@ -72,10 +72,10 @@ extern const number __mpexp_twomm1[33] attribute_hidden;
 #ifdef LITTLE_ENDI
   const number
 	__mpexp_twomm1[33] = {                     /* 2**-m1 */
-/**/                  {{0x00000000, 0x00000000} }, /* 0      */
-/**/                  {{0x00000000, 0x00000000} }, /* 0      */
-/**/                  {{0x00000000, 0x00000000} }, /* 0      */
-/**/                  {{0x00000000, 0x00000000} }, /* 0      */
+/**/                  {{0x00000000, 0x3ff00000} }, /* 1      */
+/**/                  {{0x00000000, 0x3ff00000} }, /* 1      */
+/**/                  {{0x00000000, 0x3ff00000} }, /* 1      */
+/**/                  {{0x00000000, 0x3ff00000} }, /* 1      */
 /**/                  {{0x00000000, 0x3ee00000} }, /* 2**-17 */
 /**/                  {{0x00000000, 0x3e800000} }, /* 2**-23 */
 /**/                  {{0x00000000, 0x3e800000} }, /* 2**-23 */