1 #ifndef __IEEE_BIG_ENDIAN
2 #ifndef __IEEE_LITTLE_ENDIAN
5 #define __IEEE_LITTLE_ENDIAN
8 #if defined(__arm__) || defined(__thumb__)
9 /* ARM traditionally used big-endian words; and within those words the
10 byte ordering was big or little endian depending upon the target.
11 Modern floating-point formats are naturally ordered; in this case
12 __VFP_FP__ will be defined, even if soft-float. */
15 #define __IEEE_LITTLE_ENDIAN
17 #define __IEEE_BIG_ENDIAN
20 #define __IEEE_BIG_ENDIAN
22 #define __IEEE_BYTES_LITTLE_ENDIAN
28 #define __IEEE_BIG_ENDIAN
31 #if defined (__sparc) || defined (__sparc__)
32 #define __IEEE_BIG_ENDIAN
35 #if defined(__m68k__) || defined(__mc68000__)
36 #define __IEEE_BIG_ENDIAN
39 #if defined (__H8300__) || defined (__H8300H__)
40 #define __IEEE_BIG_ENDIAN
41 #define __SMALL_BITFIELDS
42 #define _DOUBLE_IS_32BITS
46 #define __IEEE_BIG_ENDIAN
47 #define __SMALL_BITFIELDS
48 #define _DOUBLE_IS_32BITS
52 #ifdef __LITTLE_ENDIAN__
53 #define __IEEE_LITTLE_ENDIAN
55 #define __IEEE_BIG_ENDIAN
59 #define _DOUBLE_IS_32BITS
64 #define __IEEE_BIG_ENDIAN
68 #define __IEEE_LITTLE_ENDIAN
72 #define __IEEE_LITTLE_ENDIAN
76 #define __IEEE_LITTLE_ENDIAN
80 #define __IEEE_LITTLE_ENDIAN
84 #define __IEEE_BIG_ENDIAN
89 #define __IEEE_LITTLE_ENDIAN
91 #define __IEEE_BIG_ENDIAN
95 /* necv70 was __IEEE_LITTLE_ENDIAN. */
98 #define __IEEE_LITTLE_ENDIAN
99 #define __SMALL_BITFIELDS
100 #define _DOUBLE_IS_32BITS
103 #if defined(__Z8001__) || defined(__Z8002__)
104 #define __IEEE_BIG_ENDIAN
108 #define __IEEE_BIG_ENDIAN
112 #define __IEEE_LITTLE_ENDIAN
115 #if defined (__PPC__) || defined (__ppc__)
116 #if (defined(_BIG_ENDIAN) && _BIG_ENDIAN) || (defined(_AIX) && _AIX) \
117 || defined (__APPLE__)
118 #define __IEEE_BIG_ENDIAN
120 #if (defined(_LITTLE_ENDIAN) && _LITTLE_ENDIAN) || (defined(__sun__) && __sun__) || (defined(__WIN32__) && __WIN32__)
121 #define __IEEE_LITTLE_ENDIAN
127 #define __IEEE_BIG_ENDIAN
131 #define __IEEE_BIG_ENDIAN
136 #ifdef __BIG_ENDIAN__
137 #define __IEEE_BIG_ENDIAN
139 #define __IEEE_LITTLE_ENDIAN
144 #define __IEEE_BIG_ENDIAN
147 #ifndef __IEEE_BIG_ENDIAN
148 #ifndef __IEEE_LITTLE_ENDIAN
149 #error Endianess not declared!!
150 #endif /* not __IEEE_LITTLE_ENDIAN */
151 #endif /* not __IEEE_BIG_ENDIAN */
153 #endif /* not __IEEE_LITTLE_ENDIAN */
154 #endif /* not __IEEE_BIG_ENDIAN */