diff options
author | Siddhesh Poyarekar <siddhesh@redhat.com> | 2012-12-28 09:40:10 +0530 |
---|---|---|
committer | Siddhesh Poyarekar <siddhesh@redhat.com> | 2012-12-28 09:40:10 +0530 |
commit | 99136f82027a5d6276c94a25d8392a7b571a08a3 (patch) | |
tree | beecdcf8fbbe006aa512fb0a6eab478535d5dcb9 /sysdeps/ieee754/dbl-64/mpexp.h | |
parent | 7fffbdfff7d39cec0783e5b9381fa4093484c235 (diff) | |
download | glibc-99136f82027a5d6276c94a25d8392a7b571a08a3.tar.gz glibc-99136f82027a5d6276c94a25d8392a7b571a08a3.tar.xz glibc-99136f82027a5d6276c94a25d8392a7b571a08a3.zip |
Replace constants with preprocessor defines
libm Code cleanup.
Diffstat (limited to 'sysdeps/ieee754/dbl-64/mpexp.h')
-rw-r--r-- | sysdeps/ieee754/dbl-64/mpexp.h | 34 |
1 files changed, 6 insertions, 28 deletions
diff --git a/sysdeps/ieee754/dbl-64/mpexp.h b/sysdeps/ieee754/dbl-64/mpexp.h index 758255b0fd..59f5c6786e 100644 --- a/sysdeps/ieee754/dbl-64/mpexp.h +++ b/sysdeps/ieee754/dbl-64/mpexp.h @@ -28,13 +28,6 @@ #define MPEXP_H extern const number __mpexp_twomm1[33] attribute_hidden; -extern const number __mpexp_radix attribute_hidden; -extern const number __mpexp_radixi attribute_hidden; -extern const number __mpexp_zero attribute_hidden; -extern const number __mpexp_one attribute_hidden; -extern const number __mpexp_two attribute_hidden; -extern const number __mpexp_half attribute_hidden; - #ifndef AVOID_MPEXP_H #ifdef BIG_ENDI @@ -75,14 +68,6 @@ extern const number __mpexp_half attribute_hidden; /**/ {{0x3ae00000, 0x00000000} }, /* 2**-81 */ }; - const number -/**/ __mpexp_radix = {{0x41700000, 0x00000000} }, /* 2**24 */ -/**/ __mpexp_radixi = {{0x3e700000, 0x00000000} }, /* 2**-24 */ -/**/ __mpexp_zero = {{0x00000000, 0x00000000} }, /* 0 */ -/**/ __mpexp_one = {{0x3ff00000, 0x00000000} }, /* 1 */ -/**/ __mpexp_two = {{0x40000000, 0x00000000} }, /* 2 */ -/**/ __mpexp_half = {{0x3fe00000, 0x00000000} }; /* 1/2 */ - #else #ifdef LITTLE_ENDI const number @@ -121,23 +106,16 @@ extern const number __mpexp_half attribute_hidden; /**/ {{0x00000000, 0x3b100000} }, /* 2**-78 */ /**/ {{0x00000000, 0x3ae00000} }, /* 2**-81 */ }; - const number -/**/ __mpexp_radix = {{0x00000000, 0x41700000} }, /* 2**24 */ -/**/ __mpexp_radixi = {{0x00000000, 0x3e700000} }, /* 2**-24 */ -/**/ __mpexp_zero = {{0x00000000, 0x00000000} }, /* 0 */ -/**/ __mpexp_one = {{0x00000000, 0x3ff00000} }, /* 1 */ -/**/ __mpexp_two = {{0x00000000, 0x40000000} }, /* 2 */ -/**/ __mpexp_half = {{0x00000000, 0x3fe00000} }; /* 1/2 */ #endif #endif #endif -#define RADIX __mpexp_radix.d -#define RADIXI __mpexp_radixi.d -#define ZERO __mpexp_zero.d -#define ONE __mpexp_one.d -#define TWO __mpexp_two.d -#define HALF __mpexp_half.d +#define RADIX 0x1.0p24 /* 2^24 */ +#define RADIXI 0x1.0p-24 /* 2^-24 */ +#define ZERO 0.0 /* 0 */ +#define ONE 1.0 /* 1 */ +#define TWO 2.0 /* 2 */ +#define HALF 0x1.0p-1 /* 1/2 */ #endif |