Lines Matching defs:x
38 #define swap32(x) \
39 ((uint32_t)((((uint32_t)(x) & 0x000000ff) << 24) | \
40 (((uint32_t)(x) & 0x0000ff00) << 8) | \
41 (((uint32_t)(x) & 0x00ff0000) >> 8) | \
42 (((uint32_t)(x) & 0xff000000) >> 24)))
44 #define swap16(x) \
45 ((uint16_t)((((uint16_t)(x) & 0x00ff) << 8) | \
46 (((uint16_t)(x) & 0xff00) >> 8)))
52 #define CPU_TO_LE32(x) swap32(x)
53 #define CPU_TO_LE16(x) swap16(x)
54 #define CPU_TO_BE32(x) (x)
55 #define CPU_TO_BE16(x) (x)
57 #define CPU_TO_LE32(x) (x)
58 #define CPU_TO_LE16(x) (x)
59 #define CPU_TO_BE32(x) swap32(x)
60 #define CPU_TO_BE16(x) swap16(x)
63 #define LE32_TO_CPU(x) CPU_TO_LE32(x)
64 #define LE16_TO_CPU(x) CPU_TO_LE16(x)
65 #define BE32_TO_CPU(x) CPU_TO_BE32(x)
66 #define BE16_TO_CPU(x) CPU_TO_BE16(x)