summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartynas Venckus <martynas@cvs.openbsd.org>2011-07-07 00:25:40 +0000
committerMartynas Venckus <martynas@cvs.openbsd.org>2011-07-07 00:25:40 +0000
commit0e93ab9e6dae884da2aad37310d4c776092bad9a (patch)
treeb54e049885dfde2d46d5db06b56e9f77ea7b5d49
parent2be036fbad3b38e96f41ddaa1e435c2da74bc878 (diff)
Fix bit twiddling routines on ARM; where floating-point word order
is big endian.
-rw-r--r--lib/libc/gen/ldexp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libc/gen/ldexp.c b/lib/libc/gen/ldexp.c
index 0240e861c80..83dfa40896f 100644
--- a/lib/libc/gen/ldexp.c
+++ b/lib/libc/gen/ldexp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ldexp.c,v 1.2 2011/05/30 17:28:15 martynas Exp $ */
+/* $OpenBSD: ldexp.c,v 1.3 2011/07/07 00:25:39 martynas Exp $ */
/* @(#)s_scalbn.c 5.1 93/09/24 */
/* @(#)fdlibm.h 5.1 93/09/24 */
/*
@@ -22,7 +22,7 @@
/* Bit fiddling routines copied from msun/src/math_private.h,v 1.15 */
-#if BYTE_ORDER == BIG_ENDIAN
+#if (BYTE_ORDER == BIG_ENDIAN) || defined(arm32)
typedef union
{
@@ -36,7 +36,7 @@ typedef union
#endif
-#if BYTE_ORDER == LITTLE_ENDIAN
+#if (BYTE_ORDER == LITTLE_ENDIAN) && !defined(arm32)
typedef union
{