Lines Matching refs:x
61 #define ntohl(x) (x) argument
62 #define ntohs(x) (x) argument
63 #define htonl(x) (x) argument
64 #define htons(x) (x) argument
66 #define ntohll(x) (x) argument
67 #define htonll(x) (x) argument
107 #define BSWAP_8(x) ((x) & 0xff) argument
109 #define BSWAP_16(x) ((BSWAP_8(x) << 8) | BSWAP_8((x) >> 8)) argument
110 #define BSWAP_32(x) (((uint32_t)(x) << 24) | \ argument
111 (((uint32_t)(x) << 8) & 0xff0000) | \
112 (((uint32_t)(x) >> 8) & 0xff00) | \
113 ((uint32_t)(x) >> 24))
115 #define BSWAP_16(x) htons(x)
116 #define BSWAP_32(x) htonl(x)
121 #define BSWAP_64(x) (((uint64_t)(x) << 56) | \ argument
122 (((uint64_t)(x) << 40) & 0xff000000000000ULL) | \
123 (((uint64_t)(x) << 24) & 0xff0000000000ULL) | \
124 (((uint64_t)(x) << 8) & 0xff00000000ULL) | \
125 (((uint64_t)(x) >> 8) & 0xff000000ULL) | \
126 (((uint64_t)(x) >> 24) & 0xff0000ULL) | \
127 (((uint64_t)(x) >> 40) & 0xff00ULL) | \
128 ((uint64_t)(x) >> 56))
130 #define BSWAP_64(x) htonll(x)
133 #define BSWAP_64(x) ((BSWAP_32(x) << 32) | BSWAP_32((x) >> 32))
136 #define BMASK_8(x) ((x) & 0xff) argument
137 #define BMASK_16(x) ((x) & 0xffff) argument
138 #define BMASK_32(x) ((x) & 0xffffffff) argument
139 #define BMASK_64(x) (x) argument
145 #define BE_8(x) BMASK_8(x) argument
146 #define BE_16(x) BMASK_16(x) argument
147 #define BE_32(x) BMASK_32(x) argument
148 #define BE_64(x) BMASK_64(x) argument
149 #define LE_8(x) BSWAP_8(x) argument
150 #define LE_16(x) BSWAP_16(x) argument
151 #define LE_32(x) BSWAP_32(x) argument
152 #define LE_64(x) BSWAP_64(x) argument
154 #define LE_8(x) BMASK_8(x)
155 #define LE_16(x) BMASK_16(x)
156 #define LE_32(x) BMASK_32(x)
157 #define LE_64(x) BMASK_64(x)
158 #define BE_8(x) BSWAP_8(x)
159 #define BE_16(x) BSWAP_16(x)
160 #define BE_32(x) BSWAP_32(x)
161 #define BE_64(x) BSWAP_64(x)