summaryrefslogtreecommitdiff
path: root/sysdeps/ieee754/dbl-64/mpsqrt.h
diff options
context:
space:
mode:
authorSiddhesh Poyarekar <siddhesh@redhat.com>2012-12-28 09:40:10 +0530
committerSiddhesh Poyarekar <siddhesh@redhat.com>2012-12-28 09:40:10 +0530
commit99136f82027a5d6276c94a25d8392a7b571a08a3 (patch)
treebeecdcf8fbbe006aa512fb0a6eab478535d5dcb9 /sysdeps/ieee754/dbl-64/mpsqrt.h
parent7fffbdfff7d39cec0783e5b9381fa4093484c235 (diff)
downloadglibc-99136f82027a5d6276c94a25d8392a7b571a08a3.tar
glibc-99136f82027a5d6276c94a25d8392a7b571a08a3.tar.gz
glibc-99136f82027a5d6276c94a25d8392a7b571a08a3.tar.bz2
glibc-99136f82027a5d6276c94a25d8392a7b571a08a3.zip
Replace constants with preprocessor defines
libm Code cleanup.
Diffstat (limited to 'sysdeps/ieee754/dbl-64/mpsqrt.h')
-rw-r--r--sysdeps/ieee754/dbl-64/mpsqrt.h20
1 files changed, 2 insertions, 18 deletions
diff --git a/sysdeps/ieee754/dbl-64/mpsqrt.h b/sysdeps/ieee754/dbl-64/mpsqrt.h
index 7cf5b691b8..f776821988 100644
--- a/sysdeps/ieee754/dbl-64/mpsqrt.h
+++ b/sysdeps/ieee754/dbl-64/mpsqrt.h
@@ -27,31 +27,15 @@
#ifndef MPSQRT_H
#define MPSQRT_H
-extern const number __mpsqrt_one attribute_hidden;
-extern const number __mpsqrt_halfrad attribute_hidden;
extern const int __mpsqrt_mp[33] attribute_hidden;
#ifndef AVOID_MPSQRT_H
-#ifdef BIG_ENDI
- const number
-/**/ __mpsqrt_one = {{0x3ff00000, 0x00000000} }, /* 1 */
-/**/ __mpsqrt_halfrad = {{0x41600000, 0x00000000} }; /* 2**23 */
-
-#else
-#ifdef LITTLE_ENDI
- const number
-/**/ __mpsqrt_one = {{0x00000000, 0x3ff00000} }, /* 1 */
-/**/ __mpsqrt_halfrad = {{0x00000000, 0x41600000} }; /* 2**23 */
-
-#endif
-#endif
-
const int __mpsqrt_mp[33] = {0,0,0,0,1,2,2,2,2,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,
4,4,4,4,4,4,4,4,4};
#endif
-#define ONE __mpsqrt_one.d
-#define HALFRAD __mpsqrt_halfrad.d
+#define ONE 1.0 /* 1 */
+#define HALFRAD 0x1.0p23 /* 2^23 */
#endif