From dc1b6289a6f9f9d60f741b9a4270ea3a43c57c32 Mon Sep 17 00:00:00 2001 From: Jeff Johnston Date: Mon, 31 Oct 2005 18:47:20 +0000 Subject: [PATCH] 2005-10-31 Darin Johnson * libm/mathfp/s_mathcnst.c: Fix endian-ness check to be correct for constants. --- newlib/ChangeLog | 5 +++++ newlib/libm/mathfp/s_mathcnst.c | 6 +++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/newlib/ChangeLog b/newlib/ChangeLog index f3e2939b0..e478880fc 100644 --- a/newlib/ChangeLog +++ b/newlib/ChangeLog @@ -1,3 +1,8 @@ +2005-10-31 Darin Johnson + + * libm/mathfp/s_mathcnst.c: Fix endian-ness check to be + correct for constants. + 2005-10-28 Bob Wilson * 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 7865c7f78..a847ee430 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 */