Lines Matching defs:x

61 #define	ntohl(x)	(x)
62 #define ntohs(x) (x)
63 #define htonl(x) (x)
64 #define htons(x) (x)
66 #define ntohll(x) (x)
67 #define htonll(x) (x)
107 #define BSWAP_8(x) ((x) & 0xff)
109 #define BSWAP_16(x) ((BSWAP_8(x) << 8) | BSWAP_8((x) >> 8))
110 #define BSWAP_32(x) (((uint32_t)(x) << 24) | \
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) | \
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)
137 #define BMASK_16(x) ((x) & 0xffff)
138 #define BMASK_32(x) ((x) & 0xffffffff)
139 #define BMASK_64(x) (x)
145 #define BE_8(x) BMASK_8(x)
146 #define BE_16(x) BMASK_16(x)
147 #define BE_32(x) BMASK_32(x)
148 #define BE_64(x) BMASK_64(x)
149 #define LE_8(x) BSWAP_8(x)
150 #define LE_16(x) BSWAP_16(x)
151 #define LE_32(x) BSWAP_32(x)
152 #define LE_64(x) BSWAP_64(x)
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)