Home | History | Annotate | Download | only in include

Lines Matching full:bytes

121 #define htol16_ua_store(val, bytes) ({ \
123 uint8 *_bytes = (uint8 *)(bytes); \
128 #define htol32_ua_store(val, bytes) ({ \
130 uint8 *_bytes = (uint8 *)(bytes); \
137 #define hton16_ua_store(val, bytes) ({ \
139 uint8 *_bytes = (uint8 *)(bytes); \
144 #define hton32_ua_store(val, bytes) ({ \
146 uint8 *_bytes = (uint8 *)(bytes); \
153 #define ltoh16_ua(bytes) ({ \
154 const uint8 *_bytes = (const uint8 *)(bytes); \
158 #define ltoh32_ua(bytes) ({ \
159 const uint8 *_bytes = (const uint8 *)(bytes); \
163 #define ntoh16_ua(bytes) ({ \
164 const uint8 *_bytes = (const uint8 *)(bytes); \
168 #define ntoh32_ua(bytes) ({ \
169 const uint8 *_bytes = (const uint8 *)(bytes); \
210 htol16_ua_store(uint16 val, uint8 *bytes)
212 bytes[0] = val & 0xff;
213 bytes[1] = val >> 8;
218 htol32_ua_store(uint32 val, uint8 *bytes)
220 bytes[0] = val & 0xff;
221 bytes[1] = (val >> 8) & 0xff;
222 bytes[2] = (val >> 16) & 0xff;
223 bytes[3] = val >> 24;
228 hton16_ua_store(uint16 val, uint8 *bytes)
230 bytes[0] = val >> 8;
231 bytes[1] = val & 0xff;
236 hton32_ua_store(uint32 val, uint8 *bytes)
238 bytes[0] = val >> 24;
239 bytes[1] = (val >> 16) & 0xff;
240 bytes[2] = (val >> 8) & 0xff;
241 bytes[3] = val & 0xff;
246 ltoh16_ua(const void *bytes)
248 return _LTOH16_UA((const uint8 *)bytes);
253 ltoh32_ua(const void *bytes)
255 return _LTOH32_UA((const uint8 *)bytes);
260 ntoh16_ua(const void *bytes)
262 return _NTOH16_UA((const uint8 *)bytes);
267 ntoh32_ua(const void *bytes)
269 return _NTOH32_UA((const uint8 *)bytes);