Lines Matching refs:p

26 #define EXTRACT_8BITS(p)	(*(p))  argument
27 #define EXTRACT_LE_8BITS(p) (*(p)) argument
132 EXTRACT_16BITS(const void *p) in EXTRACT_16BITS() argument
134 return ((uint16_t)ntohs(((const unaligned_uint16_t *)(p))->val)); in EXTRACT_16BITS()
138 EXTRACT_32BITS(const void *p) in EXTRACT_32BITS() argument
140 return ((uint32_t)ntohl(((const unaligned_uint32_t *)(p))->val)); in EXTRACT_32BITS()
144 EXTRACT_64BITS(const void *p) in EXTRACT_64BITS() argument
146 return ((uint64_t)(((uint64_t)ntohl(((const unaligned_uint32_t *)(p) + 0)->val)) << 32 | in EXTRACT_64BITS()
147 ((uint64_t)ntohl(((const unaligned_uint32_t *)(p) + 1)->val)) << 0)); in EXTRACT_64BITS()
158 #define EXTRACT_16BITS(p) \ argument
159 ((uint16_t)(((uint16_t)(*((const uint8_t *)(p) + 0)) << 8) | \
160 ((uint16_t)(*((const uint8_t *)(p) + 1)) << 0)))
161 #define EXTRACT_32BITS(p) \ argument
162 ((uint32_t)(((uint32_t)(*((const uint8_t *)(p) + 0)) << 24) | \
163 ((uint32_t)(*((const uint8_t *)(p) + 1)) << 16) | \
164 ((uint32_t)(*((const uint8_t *)(p) + 2)) << 8) | \
165 ((uint32_t)(*((const uint8_t *)(p) + 3)) << 0)))
166 #define EXTRACT_64BITS(p) \ argument
167 ((uint64_t)(((uint64_t)(*((const uint8_t *)(p) + 0)) << 56) | \
168 ((uint64_t)(*((const uint8_t *)(p) + 1)) << 48) | \
169 ((uint64_t)(*((const uint8_t *)(p) + 2)) << 40) | \
170 ((uint64_t)(*((const uint8_t *)(p) + 3)) << 32) | \
171 ((uint64_t)(*((const uint8_t *)(p) + 4)) << 24) | \
172 ((uint64_t)(*((const uint8_t *)(p) + 5)) << 16) | \
173 ((uint64_t)(*((const uint8_t *)(p) + 6)) << 8) | \
174 ((uint64_t)(*((const uint8_t *)(p) + 7)) << 0)))
182 EXTRACT_16BITS(const void *p) in EXTRACT_16BITS() argument
184 return ((uint16_t)ntohs(*(const uint16_t *)(p))); in EXTRACT_16BITS()
188 EXTRACT_32BITS(const void *p) in EXTRACT_32BITS() argument
190 return ((uint32_t)ntohl(*(const uint32_t *)(p))); in EXTRACT_32BITS()
194 EXTRACT_64BITS(const void *p) in EXTRACT_64BITS() argument
196 return ((uint64_t)(((uint64_t)ntohl(*((const uint32_t *)(p) + 0))) << 32 | in EXTRACT_64BITS()
197 ((uint64_t)ntohl(*((const uint32_t *)(p) + 1))) << 0)); in EXTRACT_64BITS()
203 #define EXTRACT_24BITS(p) \ argument
204 ((uint32_t)(((uint32_t)(*((const uint8_t *)(p) + 0)) << 16) | \
205 ((uint32_t)(*((const uint8_t *)(p) + 1)) << 8) | \
206 ((uint32_t)(*((const uint8_t *)(p) + 2)) << 0)))
208 #define EXTRACT_40BITS(p) \ argument
209 ((uint64_t)(((uint64_t)(*((const uint8_t *)(p) + 0)) << 32) | \
210 ((uint64_t)(*((const uint8_t *)(p) + 1)) << 24) | \
211 ((uint64_t)(*((const uint8_t *)(p) + 2)) << 16) | \
212 ((uint64_t)(*((const uint8_t *)(p) + 3)) << 8) | \
213 ((uint64_t)(*((const uint8_t *)(p) + 4)) << 0)))
215 #define EXTRACT_48BITS(p) \ argument
216 ((uint64_t)(((uint64_t)(*((const uint8_t *)(p) + 0)) << 40) | \
217 ((uint64_t)(*((const uint8_t *)(p) + 1)) << 32) | \
218 ((uint64_t)(*((const uint8_t *)(p) + 2)) << 24) | \
219 ((uint64_t)(*((const uint8_t *)(p) + 3)) << 16) | \
220 ((uint64_t)(*((const uint8_t *)(p) + 4)) << 8) | \
221 ((uint64_t)(*((const uint8_t *)(p) + 5)) << 0)))
223 #define EXTRACT_56BITS(p) \ argument
224 ((uint64_t)(((uint64_t)(*((const uint8_t *)(p) + 0)) << 48) | \
225 ((uint64_t)(*((const uint8_t *)(p) + 1)) << 40) | \
226 ((uint64_t)(*((const uint8_t *)(p) + 2)) << 32) | \
227 ((uint64_t)(*((const uint8_t *)(p) + 3)) << 24) | \
228 ((uint64_t)(*((const uint8_t *)(p) + 4)) << 16) | \
229 ((uint64_t)(*((const uint8_t *)(p) + 5)) << 8) | \
230 ((uint64_t)(*((const uint8_t *)(p) + 6)) << 0)))
236 #define EXTRACT_LE_16BITS(p) \ argument
237 ((uint16_t)(((uint16_t)(*((const uint8_t *)(p) + 1)) << 8) | \
238 ((uint16_t)(*((const uint8_t *)(p) + 0)) << 0)))
239 #define EXTRACT_LE_32BITS(p) \ argument
240 ((uint32_t)(((uint32_t)(*((const uint8_t *)(p) + 3)) << 24) | \
241 ((uint32_t)(*((const uint8_t *)(p) + 2)) << 16) | \
242 ((uint32_t)(*((const uint8_t *)(p) + 1)) << 8) | \
243 ((uint32_t)(*((const uint8_t *)(p) + 0)) << 0)))
244 #define EXTRACT_LE_24BITS(p) \ argument
245 ((uint32_t)(((uint32_t)(*((const uint8_t *)(p) + 2)) << 16) | \
246 ((uint32_t)(*((const uint8_t *)(p) + 1)) << 8) | \
247 ((uint32_t)(*((const uint8_t *)(p) + 0)) << 0)))
248 #define EXTRACT_LE_64BITS(p) \ argument
249 ((uint64_t)(((uint64_t)(*((const uint8_t *)(p) + 7)) << 56) | \
250 ((uint64_t)(*((const uint8_t *)(p) + 6)) << 48) | \
251 ((uint64_t)(*((const uint8_t *)(p) + 5)) << 40) | \
252 ((uint64_t)(*((const uint8_t *)(p) + 4)) << 32) | \
253 ((uint64_t)(*((const uint8_t *)(p) + 3)) << 24) | \
254 ((uint64_t)(*((const uint8_t *)(p) + 2)) << 16) | \
255 ((uint64_t)(*((const uint8_t *)(p) + 1)) << 8) | \
256 ((uint64_t)(*((const uint8_t *)(p) + 0)) << 0)))
261 #define ND_TTEST_8BITS(p) ND_TTEST2(*(p), 1) argument
262 #define ND_TCHECK_8BITS(p) ND_TCHECK2(*(p), 1) argument
264 #define ND_TTEST_16BITS(p) ND_TTEST2(*(p), 2) argument
265 #define ND_TCHECK_16BITS(p) ND_TCHECK2(*(p), 2) argument
267 #define ND_TTEST_24BITS(p) ND_TTEST2(*(p), 3) argument
268 #define ND_TCHECK_24BITS(p) ND_TCHECK2(*(p), 3) argument
270 #define ND_TTEST_32BITS(p) ND_TTEST2(*(p), 4) argument
271 #define ND_TCHECK_32BITS(p) ND_TCHECK2(*(p), 4) argument
273 #define ND_TTEST_40BITS(p) ND_TTEST2(*(p), 5) argument
274 #define ND_TCHECK_40BITS(p) ND_TCHECK2(*(p), 5) argument
276 #define ND_TTEST_48BITS(p) ND_TTEST2(*(p), 6) argument
277 #define ND_TCHECK_48BITS(p) ND_TCHECK2(*(p), 6) argument
279 #define ND_TTEST_56BITS(p) ND_TTEST2(*(p), 7) argument
280 #define ND_TCHECK_56BITS(p) ND_TCHECK2(*(p), 7) argument
282 #define ND_TTEST_64BITS(p) ND_TTEST2(*(p), 8) argument
283 #define ND_TCHECK_64BITS(p) ND_TCHECK2(*(p), 8) argument
285 #define ND_TTEST_128BITS(p) ND_TTEST2(*(p), 16) argument
286 #define ND_TCHECK_128BITS(p) ND_TCHECK2(*(p), 16) argument