Go to the documentation of this file. 18 #if defined(_M_X64) || defined(_M_AMD64) || defined(__x86_64__) 22 #if defined(MY_CPU_AMD64) || defined(_M_IA64) 26 #if defined(_M_IX86) || defined(__i386__) 30 #if defined(MY_CPU_X86) || defined(MY_CPU_AMD64) 31 #define MY_CPU_X86_OR_AMD64 34 #if defined(MY_CPU_X86) || defined(_M_ARM) 38 #if defined(_WIN32) && defined(_M_ARM) 42 #if defined(_WIN32) && defined(_M_IA64) 43 #define MY_CPU_IA64_LE 46 #if defined(MY_CPU_X86_OR_AMD64) 47 #define MY_CPU_LE_UNALIGN 50 #ifdef MY_CPU_LE_UNALIGN 52 #define GetUi16(p) (*(const uint16_t *)(p)) 53 #define GetUi32(p) (*(const uint32_t *)(p)) 54 #define GetUi64(p) (*(const uint64_t *)(p)) 56 #define GetUi16(p) (((const uint8_t *)(p))[0] | ((uint16_t)((const uint8_t *)(p))[1] << 8)) 58 #define GetUi32(p) ( \ 59 ((const uint8_t *)(p))[0] | \ 60 ((uint32_t)((const uint8_t *)(p))[1] << 8) | \ 61 ((uint32_t)((const uint8_t *)(p))[2] << 16) | \ 62 ((uint32_t)((const uint8_t *)(p))[3] << 24)) 64 #define GetUi64(p) (GetUi32(p) | ((uint64_t)GetUi32(((const uint8_t *)(p)) + 4) << 32))