Lines Matching refs:uint8_t
98 CC_INLINE void cc_store64_be(uint64_t x, uint8_t cc_sized_by(8) * y)
106 CC_INLINE uint64_t cc_load64_be(const uint8_t cc_sized_by(8) * y)
116 CC_INLINE void cc_store64_be(uint64_t x, uint8_t cc_sized_by(8) * y)
118 y[0] = (uint8_t)(x >> 56);
119 y[1] = (uint8_t)(x >> 48);
120 y[2] = (uint8_t)(x >> 40);
121 y[3] = (uint8_t)(x >> 32);
122 y[4] = (uint8_t)(x >> 24);
123 y[5] = (uint8_t)(x >> 16);
124 y[6] = (uint8_t)(x >> 8);
125 y[7] = (uint8_t)(x);
127 CC_INLINE uint64_t cc_load64_be(const uint8_t cc_sized_by(8) * y)
136 CC_INLINE void cc_store32_be(uint32_t x, uint8_t cc_sized_by(4) * y)
144 CC_INLINE uint32_t cc_load32_be(const uint8_t cc_sized_by(4) * y)
154 CC_INLINE void cc_store32_be(uint32_t x, uint8_t cc_sized_by(4) * y)
156 y[0] = (uint8_t)(x >> 24);
157 y[1] = (uint8_t)(x >> 16);
158 y[2] = (uint8_t)(x >> 8);
159 y[3] = (uint8_t)(x);
161 CC_INLINE uint32_t cc_load32_be(const uint8_t cc_sized_by(4) * y)
167 CC_INLINE void cc_store16_be(uint16_t x, uint8_t cc_sized_by(2) * y)
169 y[0] = (uint8_t)(x >> 8);
170 y[1] = (uint8_t)(x);
172 CC_INLINE uint16_t cc_load16_be(const uint8_t cc_sized_by(2) * y)
178 CC_INLINE void cc_store64_le(uint64_t x, uint8_t cc_sized_by(8) * y)
180 y[7] = (uint8_t)(x >> 56);
181 y[6] = (uint8_t)(x >> 48);
182 y[5] = (uint8_t)(x >> 40);
183 y[4] = (uint8_t)(x >> 32);
184 y[3] = (uint8_t)(x >> 24);
185 y[2] = (uint8_t)(x >> 16);
186 y[1] = (uint8_t)(x >> 8);
187 y[0] = (uint8_t)(x);
189 CC_INLINE uint64_t cc_load64_le(const uint8_t cc_sized_by(8) * y)
196 CC_INLINE void cc_store32_le(uint32_t x, uint8_t cc_sized_by(4) * y)
198 y[3] = (uint8_t)(x >> 24);
199 y[2] = (uint8_t)(x >> 16);
200 y[1] = (uint8_t)(x >> 8);
201 y[0] = (uint8_t)(x);
203 CC_INLINE uint32_t cc_load32_le(const uint8_t cc_sized_by(4) * y)
324 #define CC_STORE32_BE(x, y) cc_store32_be((uint32_t)(x), (uint8_t *)(y))
325 #define CC_STORE32_LE(x, y) cc_store32_le((uint32_t)(x), (uint8_t *)(y))
326 #define CC_STORE64_BE(x, y) cc_store64_be((uint64_t)(x), (uint8_t *)(y))
327 #define CC_STORE64_LE(x, y) cc_store64_le((uint64_t)(x), (uint8_t *)(y))
329 #define CC_LOAD32_BE(x, y) ((x) = cc_load32_be((uint8_t *)(y)))
330 #define CC_LOAD32_LE(x, y) ((x) = cc_load32_le((uint8_t *)(y)))
331 #define CC_LOAD64_BE(x, y) ((x) = cc_load64_be((uint8_t *)(y)))
332 #define CC_LOAD64_LE(x, y) ((x) = cc_load64_le((uint8_t *)(y)))
334 #define CC_READ_LE32(ptr) cc_load32_le((uint8_t *)(ptr))
336 #define CC_WRITE_LE32(ptr, x) cc_store32_le((uint32_t)(x), (uint8_t *)(ptr))
337 #define CC_WRITE_LE64(ptr, x) cc_store64_le((uint64_t)(x), (uint8_t *)(ptr))