Lines Matching refs:uint8_t
91 CC_INLINE void cc_store64_be(uint64_t x, uint8_t cc_sized_by(8) * y)
99 CC_INLINE uint64_t cc_load64_be(const uint8_t cc_sized_by(8) * y)
109 CC_INLINE void cc_store64_be(uint64_t x, uint8_t cc_sized_by(8) * y)
111 y[0] = (uint8_t)(x >> 56);
112 y[1] = (uint8_t)(x >> 48);
113 y[2] = (uint8_t)(x >> 40);
114 y[3] = (uint8_t)(x >> 32);
115 y[4] = (uint8_t)(x >> 24);
116 y[5] = (uint8_t)(x >> 16);
117 y[6] = (uint8_t)(x >> 8);
118 y[7] = (uint8_t)(x);
120 CC_INLINE uint64_t cc_load64_be(const uint8_t cc_sized_by(8) * y)
129 CC_INLINE void cc_store32_be(uint32_t x, uint8_t cc_sized_by(4) * y)
137 CC_INLINE uint32_t cc_load32_be(const uint8_t cc_sized_by(4) * y)
147 CC_INLINE void cc_store32_be(uint32_t x, uint8_t cc_sized_by(4) * y)
149 y[0] = (uint8_t)(x >> 24);
150 y[1] = (uint8_t)(x >> 16);
151 y[2] = (uint8_t)(x >> 8);
152 y[3] = (uint8_t)(x);
154 CC_INLINE uint32_t cc_load32_be(const uint8_t cc_sized_by(4) * y)
160 CC_INLINE void cc_store16_be(uint16_t x, uint8_t cc_sized_by(2) * y)
162 y[0] = (uint8_t)(x >> 8);
163 y[1] = (uint8_t)(x);
165 CC_INLINE uint16_t cc_load16_be(const uint8_t cc_sized_by(2) * y)
171 CC_INLINE void cc_store64_le(uint64_t x, uint8_t cc_sized_by(8) * y)
173 y[7] = (uint8_t)(x >> 56);
174 y[6] = (uint8_t)(x >> 48);
175 y[5] = (uint8_t)(x >> 40);
176 y[4] = (uint8_t)(x >> 32);
177 y[3] = (uint8_t)(x >> 24);
178 y[2] = (uint8_t)(x >> 16);
179 y[1] = (uint8_t)(x >> 8);
180 y[0] = (uint8_t)(x);
182 CC_INLINE uint64_t cc_load64_le(const uint8_t cc_sized_by(8) * y)
189 CC_INLINE void cc_store32_le(uint32_t x, uint8_t cc_sized_by(4) * y)
191 y[3] = (uint8_t)(x >> 24);
192 y[2] = (uint8_t)(x >> 16);
193 y[1] = (uint8_t)(x >> 8);
194 y[0] = (uint8_t)(x);
196 CC_INLINE uint32_t cc_load32_le(const uint8_t cc_sized_by(4) * y)
666 r = (uint8_t)((_t + 0xffffffff) >> 32); \
749 #define CC_STORE32_BE(x, y) cc_store32_be((uint32_t)(x), (uint8_t *)(y))
750 #define CC_STORE32_LE(x, y) cc_store32_le((uint32_t)(x), (uint8_t *)(y))
751 #define CC_STORE64_BE(x, y) cc_store64_be((uint64_t)(x), (uint8_t *)(y))
752 #define CC_STORE64_LE(x, y) cc_store64_le((uint64_t)(x), (uint8_t *)(y))
754 #define CC_LOAD32_BE(x, y) ((x) = cc_load32_be((uint8_t *)(y)))
755 #define CC_LOAD32_LE(x, y) ((x) = cc_load32_le((uint8_t *)(y)))
756 #define CC_LOAD64_BE(x, y) ((x) = cc_load64_be((uint8_t *)(y)))
757 #define CC_LOAD64_LE(x, y) ((x) = cc_load64_le((uint8_t *)(y)))
759 #define CC_READ_LE32(ptr) cc_load32_le((uint8_t *)(ptr))
761 #define CC_WRITE_LE32(ptr, x) cc_store32_le((uint32_t)(x), (uint8_t *)(ptr))
762 #define CC_WRITE_LE64(ptr, x) cc_store64_le((uint64_t)(x), (uint8_t *)(ptr))