Lines Matching refs:x
365 static uint64_t w8rev(uint64_t const x) in w8rev() argument
367 return ((0xff & (x >> (0 * 8))) << (7 * 8)) in w8rev()
368 | ((0xff & (x >> (1 * 8))) << (6 * 8)) in w8rev()
369 | ((0xff & (x >> (2 * 8))) << (5 * 8)) in w8rev()
370 | ((0xff & (x >> (3 * 8))) << (4 * 8)) in w8rev()
371 | ((0xff & (x >> (4 * 8))) << (3 * 8)) in w8rev()
372 | ((0xff & (x >> (5 * 8))) << (2 * 8)) in w8rev()
373 | ((0xff & (x >> (6 * 8))) << (1 * 8)) in w8rev()
374 | ((0xff & (x >> (7 * 8))) << (0 * 8)); in w8rev()
377 static uint32_t w4rev(uint32_t const x) in w4rev() argument
379 return ((0xff & (x >> (0 * 8))) << (3 * 8)) in w4rev()
380 | ((0xff & (x >> (1 * 8))) << (2 * 8)) in w4rev()
381 | ((0xff & (x >> (2 * 8))) << (1 * 8)) in w4rev()
382 | ((0xff & (x >> (3 * 8))) << (0 * 8)); in w4rev()
385 static uint32_t w2rev(uint16_t const x) in w2rev() argument
387 return ((0xff & (x >> (0 * 8))) << (1 * 8)) in w2rev()
388 | ((0xff & (x >> (1 * 8))) << (0 * 8)); in w2rev()
391 static uint64_t w8nat(uint64_t const x) in w8nat() argument
393 return x; in w8nat()
396 static uint32_t w4nat(uint32_t const x) in w4nat() argument
398 return x; in w4nat()
401 static uint32_t w2nat(uint16_t const x) in w2nat() argument
403 return x; in w2nat()