diff options
author | Jeff Johnston <jjohnstn@redhat.com> | 2005-10-31 18:47:20 +0000 |
---|---|---|
committer | Jeff Johnston <jjohnstn@redhat.com> | 2005-10-31 18:47:20 +0000 |
commit | dc1b6289a6f9f9d60f741b9a4270ea3a43c57c32 (patch) | |
tree | 0ab805f252c05b8d8d7a34abd067bf1506766a5a | |
parent | 00ee7d4e99181700f2ec25214cb5d61a6170df61 (diff) | |
download | newlib-dc1b6289a6f9f9d60f741b9a4270ea3a43c57c32.zip newlib-dc1b6289a6f9f9d60f741b9a4270ea3a43c57c32.tar.gz newlib-dc1b6289a6f9f9d60f741b9a4270ea3a43c57c32.tar.bz2 |
2005-10-31 Darin Johnson <darin@usa.net>
* libm/mathfp/s_mathcnst.c: Fix endian-ness check to be
correct for constants.
-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 */ |