aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/ieee754/dbl-64/mpa.h
diff options
context:
space:
mode:
authorSiddhesh Poyarekar <siddhesh@redhat.com>2013-03-15 23:11:50 +0530
committerSiddhesh Poyarekar <siddhesh@redhat.com>2013-03-15 23:18:51 +0530
commit1e3803454e5ff517609c96166fcfaf966369920f (patch)
tree1306e5eb11f4e51b66ccf76611af87024ef83a1a /sysdeps/ieee754/dbl-64/mpa.h
parent83a6b66ae93842ded5162aff66c29fe318bfa730 (diff)
downloadglibc-1e3803454e5ff517609c96166fcfaf966369920f.zip
glibc-1e3803454e5ff517609c96166fcfaf966369920f.tar.gz
glibc-1e3803454e5ff517609c96166fcfaf966369920f.tar.bz2
Revert configurable mantissa patch
Reverts d22ca8cdfb98001d03772ef264b244930d439b3f since it is severely broken on 32-bit.
Diffstat (limited to 'sysdeps/ieee754/dbl-64/mpa.h')
-rw-r--r--sysdeps/ieee754/dbl-64/mpa.h27
1 files changed, 11 insertions, 16 deletions
diff --git a/sysdeps/ieee754/dbl-64/mpa.h b/sysdeps/ieee754/dbl-64/mpa.h
index 54044a0..168b334 100644
--- a/sysdeps/ieee754/dbl-64/mpa.h
+++ b/sysdeps/ieee754/dbl-64/mpa.h
@@ -35,7 +35,6 @@
/* Common types and definition */
/************************************************************************/
-#include <mpa-arch.h>
/* The mp_no structure holds the details of a multi-precision floating point
number.
@@ -62,7 +61,7 @@
typedef struct
{
int e;
- mantissa_t d[40];
+ double d[40];
} mp_no;
typedef union
@@ -83,13 +82,9 @@ extern const mp_no mptwo;
#define ABS(x) ((x) < 0 ? -(x) : (x))
-#ifndef RADIXI
-# define RADIXI 0x1.0p-24 /* 2^-24 */
-#endif
-
-#ifndef TWO52
-# define TWO52 0x1.0p52 /* 2^52 */
-#endif
+#define RADIX 0x1.0p24 /* 2^24 */
+#define RADIXI 0x1.0p-24 /* 2^-24 */
+#define CUTTER 0x1.0p76 /* 2^76 */
#define ZERO 0.0 /* 0 */
#define MZERO -0.0 /* 0 with the sign bit set */
@@ -97,13 +92,13 @@ extern const mp_no mptwo;
#define MONE -1.0 /* -1 */
#define TWO 2.0 /* 2 */
-#define TWO5 TWOPOW (5) /* 2^5 */
-#define TWO8 TWOPOW (8) /* 2^52 */
-#define TWO10 TWOPOW (10) /* 2^10 */
-#define TWO18 TWOPOW (18) /* 2^18 */
-#define TWO19 TWOPOW (19) /* 2^19 */
-#define TWO23 TWOPOW (23) /* 2^23 */
-
+#define TWO5 0x1.0p5 /* 2^5 */
+#define TWO8 0x1.0p8 /* 2^52 */
+#define TWO10 0x1.0p10 /* 2^10 */
+#define TWO18 0x1.0p18 /* 2^18 */
+#define TWO19 0x1.0p19 /* 2^19 */
+#define TWO23 0x1.0p23 /* 2^23 */
+#define TWO52 0x1.0p52 /* 2^52 */
#define TWO57 0x1.0p57 /* 2^57 */
#define TWO71 0x1.0p71 /* 2^71 */
#define TWOM1032 0x1.0p-1032 /* 2^-1032 */