0.9.8.10
|
Go to the documentation of this file.
31 #if defined (__GLIBC__)
33 # if (__BYTE_ORDER == __LITTLE_ENDIAN)
34 # define HT_LITTLE_ENDIAN
35 # elif (__BYTE_ORDER == __BIG_ENDIAN)
36 # define HT_BIG_ENDIAN
37 # elif (__BYTE_ORDER == __PDP_ENDIAN)
38 # define HT_PDP_ENDIAN
40 # error Unknown machine endianness detected.
42 # define HT_BYTE_ORDER __BYTE_ORDER
43 #elif defined(__sparc) || defined(__sparc__) \
44 || defined(_POWER) || defined(__powerpc__) \
45 || defined(__ppc__) || defined(__hpux) \
46 || defined(_MIPSEB) || defined(_POWER) \
48 # define HT_BIG_ENDIAN
49 # define HT_BYTE_ORDER 4321
50 #elif defined(__i386__) || defined(__alpha__) \
51 || defined(__ia64) || defined(__ia64__) \
52 || defined(_M_IX86) || defined(_M_IA64) \
53 || defined(_M_ALPHA) || defined(__amd64) \
54 || defined(__amd64__) || defined(_M_AMD64) \
55 || defined(__x86_64) || defined(__x86_64__) \
58 # define HT_LITTLE_ENDIAN
59 # define HT_BYTE_ORDER 1234
61 # error The file Common/endian.h needs to be set up for your CPU type.