Endianess definitions for SH.
authordrepper <drepper>
Mon, 12 Jun 2000 23:51:10 +0000 (23:51 +0000)
committerdrepper <drepper>
Mon, 12 Jun 2000 23:51:10 +0000 (23:51 +0000)
sysdeps/sh/bits/endian.h [new file with mode: 0644]

diff --git a/sysdeps/sh/bits/endian.h b/sysdeps/sh/bits/endian.h
new file mode 100644 (file)
index 0000000..1fef1ff
--- /dev/null
@@ -0,0 +1,13 @@
+/* SH is bi-endian but with a big-endian FPU.  */
+
+#ifndef _ENDIAN_H
+# error "Never use <bits/endian.h> directly; include <endian.h> instead."
+#endif
+
+#ifdef __LITTLE_ENDIAN__
+#define __BYTE_ORDER __LITTLE_ENDIAN
+#define __FLOAT_WORD_ORDER __LITTLE_ENDIAN
+#else
+#define __BYTE_ORDER __BIG_ENDIAN
+#define __FLOAT_WORD_ORDER __BIG_ENDIAN
+#endif