Lines Matching refs:p
54 #define EXTRACT_16BITS(p) \ argument
55 ((u_int16_t)ntohs(((const unaligned_u_int16_t *)(p))->val))
56 #define EXTRACT_32BITS(p) \ argument
57 ((u_int32_t)ntohl(((const unaligned_u_int32_t *)(p))->val))
58 #define EXTRACT_64BITS(p) \ argument
59 ((u_int64_t)(((u_int64_t)ntohl(((const unaligned_u_int32_t *)(p) + 0)->val)) << 32 | \
60 ((u_int64_t)ntohl(((const unaligned_u_int32_t *)(p) + 1)->val)) << 0))
68 #define EXTRACT_16BITS(p) \ argument
69 ((u_int16_t)((u_int16_t)*((const u_int8_t *)(p) + 0) << 8 | \
70 (u_int16_t)*((const u_int8_t *)(p) + 1)))
71 #define EXTRACT_32BITS(p) \ argument
72 ((u_int32_t)((u_int32_t)*((const u_int8_t *)(p) + 0) << 24 | \
73 (u_int32_t)*((const u_int8_t *)(p) + 1) << 16 | \
74 (u_int32_t)*((const u_int8_t *)(p) + 2) << 8 | \
75 (u_int32_t)*((const u_int8_t *)(p) + 3)))
76 #define EXTRACT_64BITS(p) \ argument
77 ((u_int64_t)((u_int64_t)*((const u_int8_t *)(p) + 0) << 56 | \
78 (u_int64_t)*((const u_int8_t *)(p) + 1) << 48 | \
79 (u_int64_t)*((const u_int8_t *)(p) + 2) << 40 | \
80 (u_int64_t)*((const u_int8_t *)(p) + 3) << 32 | \
81 (u_int64_t)*((const u_int8_t *)(p) + 4) << 24 | \
82 (u_int64_t)*((const u_int8_t *)(p) + 5) << 16 | \
83 (u_int64_t)*((const u_int8_t *)(p) + 6) << 8 | \
84 (u_int64_t)*((const u_int8_t *)(p) + 7)))
91 #define EXTRACT_16BITS(p) \ argument
92 ((u_int16_t)ntohs(*(const u_int16_t *)(p)))
93 #define EXTRACT_32BITS(p) \ argument
94 ((u_int32_t)ntohl(*(const u_int32_t *)(p)))
95 #define EXTRACT_64BITS(p) \ argument
96 ((u_int64_t)(((u_int64_t)ntohl(*((const u_int32_t *)(p) + 0))) << 32 | \
97 ((u_int64_t)ntohl(*((const u_int32_t *)(p) + 1))) << 0))
100 #define EXTRACT_24BITS(p) \ argument
101 ((u_int32_t)((u_int32_t)*((const u_int8_t *)(p) + 0) << 16 | \
102 (u_int32_t)*((const u_int8_t *)(p) + 1) << 8 | \
103 (u_int32_t)*((const u_int8_t *)(p) + 2)))
109 #define EXTRACT_LE_8BITS(p) (*(p)) argument
110 #define EXTRACT_LE_16BITS(p) \ argument
111 ((u_int16_t)((u_int16_t)*((const u_int8_t *)(p) + 1) << 8 | \
112 (u_int16_t)*((const u_int8_t *)(p) + 0)))
113 #define EXTRACT_LE_32BITS(p) \ argument
114 ((u_int32_t)((u_int32_t)*((const u_int8_t *)(p) + 3) << 24 | \
115 (u_int32_t)*((const u_int8_t *)(p) + 2) << 16 | \
116 (u_int32_t)*((const u_int8_t *)(p) + 1) << 8 | \
117 (u_int32_t)*((const u_int8_t *)(p) + 0)))
118 #define EXTRACT_LE_64BITS(p) \ argument
119 ((u_int64_t)((u_int64_t)*((const u_int8_t *)(p) + 7) << 56 | \
120 (u_int64_t)*((const u_int8_t *)(p) + 6) << 48 | \
121 (u_int64_t)*((const u_int8_t *)(p) + 5) << 40 | \
122 (u_int64_t)*((const u_int8_t *)(p) + 4) << 32 | \
123 (u_int64_t)*((const u_int8_t *)(p) + 3) << 24 | \
124 (u_int64_t)*((const u_int8_t *)(p) + 2) << 16 | \
125 (u_int64_t)*((const u_int8_t *)(p) + 1) << 8 | \
126 (u_int64_t)*((const u_int8_t *)(p) + 0)))