|
@@ -1,4 +1,7 @@
|
|
|
-/* ARM is (usually) little-endian but with a big-endian FPU. */
|
|
|
|
|
|
|
+/* ARM is (usually) little-endian.
|
|
|
|
|
+ * Older FPU style (FPA) is always big-endian.
|
|
|
|
|
+ * Newer FPU style (VFP) is same as host byte-order.
|
|
|
|
|
+ */
|
|
|
|
|
|
|
|
#ifndef _ENDIAN_H
|
|
#ifndef _ENDIAN_H
|
|
|
# error "Never use <bits/endian.h> directly; include <endian.h> instead."
|
|
# error "Never use <bits/endian.h> directly; include <endian.h> instead."
|
|
@@ -9,4 +12,8 @@
|
|
|
#else
|
|
#else
|
|
|
#define __BYTE_ORDER __LITTLE_ENDIAN
|
|
#define __BYTE_ORDER __LITTLE_ENDIAN
|
|
|
#endif
|
|
#endif
|
|
|
|
|
+#ifdef __VFP_FP__
|
|
|
|
|
+#define __FLOAT_WORD_ORDER __BYTE_ORDER
|
|
|
|
|
+#else
|
|
|
#define __FLOAT_WORD_ORDER __BIG_ENDIAN
|
|
#define __FLOAT_WORD_ORDER __BIG_ENDIAN
|
|
|
|
|
+#endif
|