2005-07-08 Carlos O'Donell <carlos@systemhalted.org>
[glibc-ports.git] / sysdeps / arm / bits / endian.h
blobdc909c33e0902508c22b572a6265b197d4f0e983
1 #ifndef _ENDIAN_H
2 # error "Never use <bits/endian.h> directly; include <endian.h> instead."
3 #endif
5 /* ARM can be either big or little endian. */
6 #ifdef __ARMEB__
7 #define __BYTE_ORDER __BIG_ENDIAN
8 #else
9 #define __BYTE_ORDER __LITTLE_ENDIAN
10 #endif
12 /* FPA floating point units are always big-endian, irrespective of the
13 CPU endianness. VFP floating point units use the same endianness
14 as the rest of the system. */
15 #ifdef __VFP_FP__
16 #define __FLOAT_WORD_ORDER __BYTE_ORDER
17 #else
18 #define __FLOAT_WORD_ORDER __BIG_ENDIAN
19 #endif