Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/newlib
diff options
context:
space:
mode:
authorJeff Johnston <jjohnstn@redhat.com>2005-10-31 21:47:20 +0300
committerJeff Johnston <jjohnstn@redhat.com>2005-10-31 21:47:20 +0300
commitdc1b6289a6f9f9d60f741b9a4270ea3a43c57c32 (patch)
tree0ab805f252c05b8d8d7a34abd067bf1506766a5a /newlib
parent00ee7d4e99181700f2ec25214cb5d61a6170df61 (diff)
2005-10-31 Darin Johnson <darin@usa.net>
* libm/mathfp/s_mathcnst.c: Fix endian-ness check to be correct for constants.
Diffstat (limited to 'newlib')
-rw-r--r--newlib/ChangeLog5
-rw-r--r--newlib/libm/mathfp/s_mathcnst.c6
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 <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 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 */