Go to the documentation of this file. 11 #ifndef TLX_DEFINE_ENDIAN_HEADER 12 #define TLX_DEFINE_ENDIAN_HEADER 21 #if (defined(__BYTE_ORDER) && __BYTE_ORDER == __BIG_ENDIAN) || \ 22 (defined(__BYTE_ORDER__) && __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__) || \ 23 defined(__BIG_ENDIAN__) || \ 24 defined(__ARMEB__) || \ 25 defined(__THUMBEB__) || \ 26 defined(__AARCH64EB__) || \ 27 defined(_MIBSEB) || defined(__MIBSEB) || defined(__MIBSEB__) 30 #define TLX_BIG_ENDIAN 1 32 #elif (defined(__BYTE_ORDER) && __BYTE_ORDER == __LITTLE_ENDIAN) || \ 33 (defined(__BYTE_ORDER__) && __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__) || \ 34 defined(__LITTLE_ENDIAN__) || \ 35 defined(__ARMEL__) || \ 36 defined(__THUMBEL__) || \ 37 defined(__AARCH64EL__) || \ 38 defined(_MIPSEL) || defined(__MIPSEL) || defined(__MIPSEL__) || \ 42 #define TLX_LITTLE_ENDIAN 1 45 #error "tlx: I don't know what architecture this is!" 52 #endif // !TLX_DEFINE_ENDIAN_HEADER