Lines Matching refs:p
102 uint8_t const *p = (uint8_t const *)pp; in be16dec() local
104 return (((unsigned)p[0] << 8) | p[1]); in be16dec()
110 uint8_t const *p = (uint8_t const *)pp; in be32dec() local
112 return (((uint32_t)p[0] << 24) | ((uint32_t)p[1] << 16) | in be32dec()
113 ((uint32_t)p[2] << 8) | p[3]); in be32dec()
119 uint8_t const *p = (uint8_t const *)pp; in be64dec() local
121 return (((uint64_t)be32dec(p) << 32) | be32dec(p + 4)); in be64dec()
127 uint8_t const *p = (uint8_t const *)pp; in le16dec() local
129 return (((unsigned)p[1] << 8) | p[0]); in le16dec()
135 uint8_t const *p = (uint8_t const *)pp; in le32dec() local
137 return (((uint32_t)p[3] << 24) | ((uint32_t)p[2] << 16) | in le32dec()
138 ((uint32_t)p[1] << 8) | p[0]); in le32dec()
144 uint8_t const *p = (uint8_t const *)pp; in le64dec() local
146 return (((uint64_t)le32dec(p + 4) << 32) | le32dec(p)); in le64dec()
152 uint8_t *p = (uint8_t *)pp; in be16enc() local
154 p[0] = (u >> 8) & 0xff; in be16enc()
155 p[1] = u & 0xff; in be16enc()
161 uint8_t *p = (uint8_t *)pp; in be32enc() local
163 p[0] = (u >> 24) & 0xff; in be32enc()
164 p[1] = (u >> 16) & 0xff; in be32enc()
165 p[2] = (u >> 8) & 0xff; in be32enc()
166 p[3] = u & 0xff; in be32enc()
172 uint8_t *p = (uint8_t *)pp; in be64enc() local
174 be32enc(p, (uint32_t)(u >> 32)); in be64enc()
175 be32enc(p + 4, (uint32_t)(u & 0xffffffffU)); in be64enc()
181 uint8_t *p = (uint8_t *)pp; in le16enc() local
183 p[0] = u & 0xff; in le16enc()
184 p[1] = (u >> 8) & 0xff; in le16enc()
190 uint8_t *p = (uint8_t *)pp; in le32enc() local
192 p[0] = u & 0xff; in le32enc()
193 p[1] = (u >> 8) & 0xff; in le32enc()
194 p[2] = (u >> 16) & 0xff; in le32enc()
195 p[3] = (u >> 24) & 0xff; in le32enc()
201 uint8_t *p = (uint8_t *)pp; in le64enc() local
203 le32enc(p, (uint32_t)(u & 0xffffffffU)); in le64enc()
204 le32enc(p + 4, (uint32_t)(u >> 32)); in le64enc()