diff options
-rw-r--r-- | newlib/ChangeLog | 5 | ||||
-rw-r--r-- | newlib/libm/mathfp/s_mathcnst.c | 6 |
2 files changed, 8 insertions, 3 deletions
diff --git a/newlib/ChangeLog b/newlib/ChangeLog index f3e2939..e478880 100644 --- a/newlib/ChangeLog +++ b/newlib/ChangeLog @@ -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. diff --git a/newlib/libm/mathfp/s_mathcnst.c b/newlib/libm/mathfp/s_mathcnst.c index 7865c7f..a847ee4 100644 --- a/newlib/libm/mathfp/s_mathcnst.c +++ b/newlib/libm/mathfp/s_mathcnst.c @@ -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 */ |