| 1 | #ifndef __IEEE_BIG_ENDIAN
|
|---|
| 2 | #ifndef __IEEE_LITTLE_ENDIAN
|
|---|
| 3 |
|
|---|
| 4 | #ifdef __alpha__
|
|---|
| 5 | #define __IEEE_LITTLE_ENDIAN
|
|---|
| 6 | #endif
|
|---|
| 7 |
|
|---|
| 8 | #if defined(__arm__) || defined(__thumb__)
|
|---|
| 9 | /* ARM always has big-endian words. Within those words the byte ordering
|
|---|
| 10 | will be big or little endian depending upon the target. */
|
|---|
| 11 | #define __IEEE_BIG_ENDIAN
|
|---|
| 12 | #ifdef __ARMEL__
|
|---|
| 13 | #define __IEEE_BYTES_LITTLE_ENDIAN
|
|---|
| 14 | #endif
|
|---|
| 15 | #endif
|
|---|
| 16 |
|
|---|
| 17 | #ifdef __hppa__
|
|---|
| 18 | #define __IEEE_BIG_ENDIAN
|
|---|
| 19 | #endif
|
|---|
| 20 |
|
|---|
| 21 | #if defined (__sparc) || defined (__sparc__)
|
|---|
| 22 | #define __IEEE_BIG_ENDIAN
|
|---|
| 23 | #endif
|
|---|
| 24 |
|
|---|
| 25 | #if defined(__m68k__) || defined(__mc68000__)
|
|---|
| 26 | #define __IEEE_BIG_ENDIAN
|
|---|
| 27 | #endif
|
|---|
| 28 |
|
|---|
| 29 | #if defined (__H8300__) || defined (__H8300H__)
|
|---|
| 30 | #define __IEEE_BIG_ENDIAN
|
|---|
| 31 | #define __SMALL_BITFIELDS
|
|---|
| 32 | #define _DOUBLE_IS_32BITS
|
|---|
| 33 | #endif
|
|---|
| 34 |
|
|---|
| 35 | #ifdef __H8500__
|
|---|
| 36 | #define __IEEE_BIG_ENDIAN
|
|---|
| 37 | #define __SMALL_BITFIELDS
|
|---|
| 38 | #define _DOUBLE_IS_32BITS
|
|---|
| 39 | #endif
|
|---|
| 40 |
|
|---|
| 41 | #ifdef __sh__
|
|---|
| 42 | #ifdef __LITTLE_ENDIAN__
|
|---|
| 43 | #define __IEEE_LITTLE_ENDIAN
|
|---|
| 44 | #else
|
|---|
| 45 | #define __IEEE_BIG_ENDIAN
|
|---|
| 46 | #endif
|
|---|
| 47 |
|
|---|
| 48 | #ifdef __SH3E__
|
|---|
| 49 | #define _DOUBLE_IS_32BITS
|
|---|
| 50 | #endif
|
|---|
| 51 | #endif
|
|---|
| 52 |
|
|---|
| 53 | #ifdef _AM29K
|
|---|
| 54 | #define __IEEE_BIG_ENDIAN
|
|---|
| 55 | #endif
|
|---|
| 56 |
|
|---|
| 57 | #ifdef __i386__
|
|---|
| 58 | #define __IEEE_LITTLE_ENDIAN
|
|---|
| 59 | #endif
|
|---|
| 60 |
|
|---|
| 61 | #ifdef __i960__
|
|---|
| 62 | #define __IEEE_LITTLE_ENDIAN
|
|---|
| 63 | #endif
|
|---|
| 64 |
|
|---|
| 65 | #ifdef __MIPSEL__
|
|---|
| 66 | #define __IEEE_LITTLE_ENDIAN
|
|---|
| 67 | #endif
|
|---|
| 68 |
|
|---|
| 69 | #ifdef __MIPSEB__
|
|---|
| 70 | #define __IEEE_BIG_ENDIAN
|
|---|
| 71 | #endif
|
|---|
| 72 |
|
|---|
| 73 | #ifdef __pj__
|
|---|
| 74 | #ifdef __pjl__
|
|---|
| 75 | #define __IEEE_LITTLE_ENDIAN
|
|---|
| 76 | #else
|
|---|
| 77 | #define __IEEE_BIG_ENDIAN
|
|---|
| 78 | #endif
|
|---|
| 79 | #endif
|
|---|
| 80 |
|
|---|
| 81 | /* necv70 was __IEEE_LITTLE_ENDIAN. */
|
|---|
| 82 |
|
|---|
| 83 | #ifdef __W65__
|
|---|
| 84 | #define __IEEE_LITTLE_ENDIAN
|
|---|
| 85 | #define __SMALL_BITFIELDS
|
|---|
| 86 | #define _DOUBLE_IS_32BITS
|
|---|
| 87 | #endif
|
|---|
| 88 |
|
|---|
| 89 | #if defined(__Z8001__) || defined(__Z8002__)
|
|---|
| 90 | #define __IEEE_BIG_ENDIAN
|
|---|
| 91 | #endif
|
|---|
| 92 |
|
|---|
| 93 | #ifdef __m88k__
|
|---|
| 94 | #define __IEEE_BIG_ENDIAN
|
|---|
| 95 | #endif
|
|---|
| 96 |
|
|---|
| 97 | #ifdef __v800
|
|---|
| 98 | #define __IEEE_LITTLE_ENDIAN
|
|---|
| 99 | #endif
|
|---|
| 100 |
|
|---|
| 101 | #if defined (__PPC__) || defined (__ppc__)
|
|---|
| 102 | #if (defined(_BIG_ENDIAN) && _BIG_ENDIAN) || (defined(_AIX) && _AIX) \
|
|---|
| 103 | || defined (__APPLE__)
|
|---|
| 104 | #define __IEEE_BIG_ENDIAN
|
|---|
| 105 | #else
|
|---|
| 106 | #if (defined(_LITTLE_ENDIAN) && _LITTLE_ENDIAN) || (defined(__sun__) && __sun__) || (defined(__WIN32__) && __WIN32__)
|
|---|
| 107 | #define __IEEE_LITTLE_ENDIAN
|
|---|
| 108 | #endif
|
|---|
| 109 | #endif
|
|---|
| 110 | #endif
|
|---|
| 111 |
|
|---|
| 112 | #ifdef __fr30__
|
|---|
| 113 | #define __IEEE_BIG_ENDIAN
|
|---|
| 114 | #endif
|
|---|
| 115 |
|
|---|
| 116 | #ifdef __mcore__
|
|---|
| 117 | #define __IEEE_BIG_ENDIAN
|
|---|
| 118 | #endif
|
|---|
| 119 |
|
|---|
| 120 |
|
|---|
| 121 | #ifdef __ia64__
|
|---|
| 122 | #ifdef __BIG_ENDIAN__
|
|---|
| 123 | #define __IEEE_BIG_ENDIAN
|
|---|
| 124 | #else
|
|---|
| 125 | #define __IEEE_LITTLE_ENDIAN
|
|---|
| 126 | #endif
|
|---|
| 127 | #endif
|
|---|
| 128 |
|
|---|
| 129 | #ifndef __IEEE_BIG_ENDIAN
|
|---|
| 130 | #ifndef __IEEE_LITTLE_ENDIAN
|
|---|
| 131 | #error Endianess not declared!!
|
|---|
| 132 | #endif /* not __IEEE_LITTLE_ENDIAN */
|
|---|
| 133 | #endif /* not __IEEE_BIG_ENDIAN */
|
|---|
| 134 |
|
|---|
| 135 | #endif /* not __IEEE_LITTLE_ENDIAN */
|
|---|
| 136 | #endif /* not __IEEE_BIG_ENDIAN */
|
|---|
| 137 |
|
|---|