2005-10-31 Darin Johnson <darin@usa.net>

* libm/mathfp/s_mathcnst.c: Fix endian-ness check to be
        correct for constants.
This commit is contained in:
Jeff Johnston 2005-10-31 18:47:20 +00:00
parent 00ee7d4e99
commit dc1b6289a6
2 changed files with 8 additions and 3 deletions

View File

@ -1,3 +1,8 @@
2005-10-31 Darin Johnson <darin@usa.net>
* libm/mathfp/s_mathcnst.c: Fix endian-ness check to be
correct for constants.
2005-10-28 Bob Wilson <bob.wilson@acm.org>
* libc/stdio/siprintf.c: Wrap long lines in ANSI_SYNOPSIS.

View File

@ -12,13 +12,13 @@ ufloat z_hugeval_f = { 0x7f800000 };
ufloat z_infinity_f = { 0x7f800000 };
ufloat z_notanum_f = { 0xffd00000 };
#ifdef ___IEEE_LITTLE_ENDIAN
#ifdef __IEEE_BIG_ENDIAN
udouble z_hugeval = { 0x7ff00000, 0 };
udouble z_infinity = { 0x7ff00000, 0 };
udouble z_notanum = { 0xfff80000, 0 };
#else
#else /* __IEEE_LITTLE_ENDIAN */
udouble z_hugeval = { 0, 0x7ff00000 };
udouble z_infinity = { 0, 0x7ff00000 };
udouble z_notanum = { 0, 0xfff80000 };
#endif /* ___IEEE_LITTLE_ENDIAN */
#endif /* __IEEE_LITTLE_ENDIAN */