diff options
author | 2011-07-07 00:25:39 +0000 | |
---|---|---|
committer | 2011-07-07 00:25:39 +0000 | |
commit | fb55e75321efa07c43524da3213a2cf07ad89bfc (patch) | |
tree | 425bd9466e2e461d28bdccb0636f675c19a34980 /lib/libc | |
parent | allow AOE config to be specified by userland. ok marco. (diff) | |
download | wireguard-openbsd-fb55e75321efa07c43524da3213a2cf07ad89bfc.tar.xz wireguard-openbsd-fb55e75321efa07c43524da3213a2cf07ad89bfc.zip |
Fix bit twiddling routines on ARM; where floating-point word order
is big endian.
Diffstat (limited to 'lib/libc')
-rw-r--r-- | lib/libc/gen/ldexp.c | 6 |
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 { |