[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[cp-patches] FYI: Fix for BIG_ENDIAN detection in fdlibm.h
From: |
Guilhem Lavaux |
Subject: |
[cp-patches] FYI: Fix for BIG_ENDIAN detection in fdlibm.h |
Date: |
Wed, 14 Dec 2005 21:15:54 +0100 |
User-agent: |
Mozilla Thunderbird 1.0.2 (X11/20050322) |
Hi,
Here is a small patch to fix a bug detected by Riccardo Mottola. It
appears that big endian must be detected by also checking __powerpc__
and __BIG_ENDIAN__ in ieeefp.h
Cheers,
Guilhem.
ChangeLog:
2005-12-14 Riccardo Mottola <address@hidden>
* native/fdlibm/ieeefp.h: Fixed detection of big endian on
powerpc.
Index: native/fdlibm/ieeefp.h
===================================================================
RCS file: /cvsroot/classpath/classpath/native/fdlibm/ieeefp.h,v
retrieving revision 1.6
diff -u -r1.6 ieeefp.h
--- native/fdlibm/ieeefp.h 24 Apr 2005 17:47:35 -0000 1.6
+++ native/fdlibm/ieeefp.h 14 Dec 2005 20:11:11 -0000
@@ -123,9 +123,8 @@
#define __IEEE_LITTLE_ENDIAN
#endif
-#if defined (__PPC__) || defined (__ppc__) || defined (__ppc64__)
-#if (defined(_BIG_ENDIAN) && _BIG_ENDIAN) || (defined(_AIX) && _AIX) \
- || defined (__APPLE__)
+#if defined (__PPC__) || defined (__ppc__) || defined (__powerpc__) || defined
(__ppc64__)
+#if (defined(_BIG_ENDIAN) && _BIG_ENDIAN) || (defined(_AIX) && _AIX) ||
defined (__BIG_ENDIAN__)|| defined (__APPLE__)
#define __IEEE_BIG_ENDIAN
#else
#if (defined(_LITTLE_ENDIAN) && _LITTLE_ENDIAN) || (defined(__sun__) &&
__sun__) || (defined(__WIN32__) && __WIN32__)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [cp-patches] FYI: Fix for BIG_ENDIAN detection in fdlibm.h,
Guilhem Lavaux <=