Fixed fdlibm on x86_64: must have #define'd __LITTLE_ENDIAN on x86_64 too
authorJan Vrany <jan.vrany@fit.cvut.cz>
Sun, 31 Jan 2016 02:38:58 +0000
changeset 3526 c4fd15a4acb0
parent 3525 42a77733c566
child 3528 2a8be4ff4fe3
child 3532 a12a5c66a9e5
Fixed fdlibm on x86_64: must have #define'd __LITTLE_ENDIAN on x86_64 too Otherwise __LO() and __HI() macros are not working as expected, see http://forum.world.st/fdlibm-is-not-C99-conformant-td3167570.html This fixes FloatAndDoubleTests#test() on Linux/64bit on OpenJDK6 (which makes use of java.lang.StrictMath#floor() which was subject to the bug)
support/fdlibm/fdlibm.h
--- a/support/fdlibm/fdlibm.h	Thu Jan 28 11:04:08 2016 +0000
+++ b/support/fdlibm/fdlibm.h	Sun Jan 31 02:38:58 2016 +0000
@@ -17,7 +17,8 @@
 
 #if defined(i386) || defined(i486) || \
 	defined(intel) || defined(x86) || defined(i86pc) || \
-	defined(__alpha) || defined(__osf__)
+	defined(__alpha) || defined(__osf__) || \
+    defined(__x86_64)
 #define __LITTLE_ENDIAN
 #endif