diff options
-rw-r--r-- | lib/libc/alpha/gen/infinity.c | 2 | ||||
-rw-r--r-- | lib/libc/amd64/gen/infinity.c | 2 | ||||
-rw-r--r-- | lib/libc/i386/gen/infinity.c | 2 | ||||
-rw-r--r-- | lib/libc/ia64/gen/infinity.c | 2 | ||||
-rw-r--r-- | lib/libc/sparc64/gen/infinity.c | 2 | ||||
-rw-r--r-- | lib/msun/src/math.h | 7 |
6 files changed, 7 insertions, 10 deletions
diff --git a/lib/libc/alpha/gen/infinity.c b/lib/libc/alpha/gen/infinity.c index 15b1293..7cb5b80 100644 --- a/lib/libc/alpha/gen/infinity.c +++ b/lib/libc/alpha/gen/infinity.c @@ -33,4 +33,4 @@ __FBSDID("$FreeBSD$"); #include <math.h> /* bytes for +Infinity on an Alpha (IEEE double format) */ -const union __infinity_un __infinity = { { 0, 0, 0, 0, 0, 0, 0xf0, 0x7f } }; +char __infinity[] = { 0, 0, 0, 0, 0, 0, 0xf0, 0x7f }; diff --git a/lib/libc/amd64/gen/infinity.c b/lib/libc/amd64/gen/infinity.c index 547927b..966a06e 100644 --- a/lib/libc/amd64/gen/infinity.c +++ b/lib/libc/amd64/gen/infinity.c @@ -8,4 +8,4 @@ __FBSDID("$FreeBSD$"); #include <math.h> /* bytes for +Infinity on a 387 */ -const union __infinity_un __infinity = { { 0, 0, 0, 0, 0, 0, 0xf0, 0x7f } }; +char __infinity[] = { 0, 0, 0, 0, 0, 0, 0xf0, 0x7f }; diff --git a/lib/libc/i386/gen/infinity.c b/lib/libc/i386/gen/infinity.c index 547927b..966a06e 100644 --- a/lib/libc/i386/gen/infinity.c +++ b/lib/libc/i386/gen/infinity.c @@ -8,4 +8,4 @@ __FBSDID("$FreeBSD$"); #include <math.h> /* bytes for +Infinity on a 387 */ -const union __infinity_un __infinity = { { 0, 0, 0, 0, 0, 0, 0xf0, 0x7f } }; +char __infinity[] = { 0, 0, 0, 0, 0, 0, 0xf0, 0x7f }; diff --git a/lib/libc/ia64/gen/infinity.c b/lib/libc/ia64/gen/infinity.c index 681d811..a24cea8 100644 --- a/lib/libc/ia64/gen/infinity.c +++ b/lib/libc/ia64/gen/infinity.c @@ -33,4 +33,4 @@ __FBSDID("$FreeBSD$"); #include <math.h> /* bytes for +Infinity on an ia64 (IEEE double format) */ -const union __infinity_un __infinity = { { 0, 0, 0, 0, 0, 0, 0xf0, 0x7f } }; +char __infinity[] = { 0, 0, 0, 0, 0, 0, 0xf0, 0x7f }; diff --git a/lib/libc/sparc64/gen/infinity.c b/lib/libc/sparc64/gen/infinity.c index 4a04c1c..3a5cd47 100644 --- a/lib/libc/sparc64/gen/infinity.c +++ b/lib/libc/sparc64/gen/infinity.c @@ -11,4 +11,4 @@ __FBSDID("$FreeBSD$"); #include <math.h> /* bytes for +Infinity on a sparc */ -const union __infinity_un __infinity = { { 0x7f, 0xf0, 0, 0, 0, 0, 0, 0 } }; +char __infinity[] = { 0x7f, (char)0xf0, 0, 0, 0, 0, 0, 0 }; diff --git a/lib/msun/src/math.h b/lib/msun/src/math.h index 5f7312b..108b086 100644 --- a/lib/msun/src/math.h +++ b/lib/msun/src/math.h @@ -20,11 +20,8 @@ /* * ANSI/POSIX */ -extern const union __infinity_un { - unsigned char __uc[8]; - double __ud; -} __infinity; -#define HUGE_VAL (__infinity.__ud) +extern char __infinity[]; +#define HUGE_VAL (*(double *) __infinity) /* * XOPEN/SVID |