summaryrefslogtreecommitdiffstats
path: root/contrib/compiler-rt/lib/int_endianness.h
diff options
context:
space:
mode:
authorandrew <andrew@FreeBSD.org>2013-01-18 22:52:59 +0000
committerandrew <andrew@FreeBSD.org>2013-01-18 22:52:59 +0000
commit1503599bdce0b577ceb27d1332e6ac5e586389f9 (patch)
treed700fc7bf0c3bb2f309e25c1cec8bcdb4e60f832 /contrib/compiler-rt/lib/int_endianness.h
parentd0b9f3f9cfbe900c3fad63d0186d237e265b69f5 (diff)
downloadFreeBSD-src-1503599bdce0b577ceb27d1332e6ac5e586389f9.zip
FreeBSD-src-1503599bdce0b577ceb27d1332e6ac5e586389f9.tar.gz
Import compiler-rt r172839.
This brings in __aeabi_lcmp and __aeabi_ulcmp. It also fixes the spelling of __aeabi_f2lz. Both changes originated on the arm_eabi project branch.
Diffstat (limited to 'contrib/compiler-rt/lib/int_endianness.h')
-rw-r--r--contrib/compiler-rt/lib/int_endianness.h15
1 files changed, 14 insertions, 1 deletions
diff --git a/contrib/compiler-rt/lib/int_endianness.h b/contrib/compiler-rt/lib/int_endianness.h
index 70bd1773..edb58c8 100644
--- a/contrib/compiler-rt/lib/int_endianness.h
+++ b/contrib/compiler-rt/lib/int_endianness.h
@@ -31,7 +31,7 @@
/* .. */
-#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__DragonFly__) || defined(__minix)
+#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__DragonFly__) || defined(__minix)
#include <sys/endian.h>
#if _BYTE_ORDER == _BIG_ENDIAN
@@ -44,6 +44,19 @@
#endif /* *BSD */
+#if defined(__OpenBSD__) || defined(__Bitrig__)
+#include <machine/endian.h>
+
+#if _BYTE_ORDER == _BIG_ENDIAN
+#define _YUGA_LITTLE_ENDIAN 0
+#define _YUGA_BIG_ENDIAN 1
+#elif _BYTE_ORDER == _LITTLE_ENDIAN
+#define _YUGA_LITTLE_ENDIAN 1
+#define _YUGA_BIG_ENDIAN 0
+#endif /* _BYTE_ORDER */
+
+#endif /* OpenBSD and Bitrig. */
+
/* .. */
/* Mac OSX has __BIG_ENDIAN__ or __LITTLE_ENDIAN__ automatically set by the compiler (at least with GCC) */
OpenPOWER on IntegriCloud