This is the mail archive of the
ecos-patches@sourceware.org
mailing list for the eCos project.
Fix libm infinity (bug #1000448)
- From: jlarmour at dargo dot barn dot ecoscentric dot com (Jonathan Larmour)
- To: ecos-patches at ecos dot sourceware dot org
- Date: Tue, 4 Sep 2007 15:25:53 +0100 (BST)
- Subject: Fix libm infinity (bug #1000448)
Index: ChangeLog
===================================================================
RCS file: /cvs/ecos/ecos/packages/language/c/libm/current/ChangeLog,v
retrieving revision 1.25
diff -u -5 -p -r1.25 ChangeLog
--- ChangeLog 14 Apr 2004 20:40:56 -0000 1.25
+++ ChangeLog 4 Sep 2007 14:25:53 -0000
@@ -1,5 +1,12 @@
+2007-09-04 Stephen Finney <shf@pfinc.com>
+2007-09-04 Jonathan Larmour <jifl@eCosCentric.com>
+
+ * src/misc/infconst.c: Declare infinity byte order as dependent on
+ double byte order, not integer.
+ Fixes bug #1000448.
+
2004-04-14 Andrew Lunn <andrew.lunn@ascom.ch>
* src/double/ieee754-core/e_cosh.c (__ieee754_cosh):
* src/double/ieee754-core/e_sinh.c (__ieee754_sinh): Make use of
the CYG_LIBM_LO() macro which does not generate a compiler warning.
Index: src/misc/infconst.c
===================================================================
RCS file: /cvs/ecos/ecos/packages/language/c/libm/current/src/misc/infconst.c,v
retrieving revision 1.9
diff -u -5 -p -r1.9 infconst.c
--- src/misc/infconst.c 23 May 2002 23:07:52 -0000 1.9
+++ src/misc/infconst.c 4 Sep 2007 14:25:53 -0000
@@ -67,11 +67,11 @@
#include <sys/ieeefp.h> // Cyg_libm_ieee_double_shape_type
// GLOBALS
-#if (CYG_BYTEORDER == CYG_MSBFIRST) // Big endian
+#if (CYG_DOUBLE_BYTEORDER == CYG_MSBFIRST) // Big endian
const Cyg_libm_ieee_double_shape_type cyg_libm_infinity = { {0x7ff00000, 0} };
#else // Little endian