Lines Matching refs:x
31 #define SIZEOF_IN_BITS(x) (sizeof(x)*BITS_PER_BYTE) argument
36 #define BYTE_SWAP_16(x) \ argument
37 ((((u16_t)(x) & 0xff00) >> 8) | \
38 (((u16_t)(x) & 0x00ff) << 8))
39 #define BYTE_SWAP_32(x) \ argument
40 ((((u32_t)(x) & 0xff000000) >> 24) | \
41 (((u32_t)(x) & 0x00ff0000) >> 8) | \
42 (((u32_t)(x) & 0x0000ff00) << 8) | \
43 (((u32_t)(x) & 0x000000ff) << 24))
46 #define BYTE_SWAP_INT(x) \ argument
47 (SIZEOF_IN_BITS(x) == 16 ? BYTE_SWAP_16(x) : \
48 SIZEOF_IN_BITS(x) == 32 ? BYTE_SWAP_32(x) : (x))
55 #define BE_INT16(x) (x) argument
56 #define BE_INT32(x) (x) argument
57 #define BE_INT(x) (x) argument
58 #define LE_INT16(x) BYTE_SWAP_16(x) argument
59 #define LE_INT32(x) BYTE_SWAP_32(x) argument
60 #define LE_INT(x) BYTE_SWAP_INT(x) argument
64 #define LE_INT16(x) (x) argument
65 #define LE_INT32(x) (x) argument
66 #define LE_INT(x) (x) argument
67 #define BE_INT16(x) BYTE_SWAP_16(x) argument
68 #define BE_INT32(x) BYTE_SWAP_32(x) argument
69 #define BE_INT(x) BYTE_SWAP_INT(x) argument