4 #define bswap_16(value) \
5 ((((value) & 0xff) << 8) | ((value) >> 8))
7 #define bswap_32(value) \
8 (((uint32_t)bswap_16((uint16_t)((value) & 0xffff)) << 16) | \
9 (uint32_t)bswap_16((uint16_t)((value) >> 16)))
11 #define bswap_64(value) \
12 (((uint64_t)bswap_32((uint32_t)((value) & 0xffffffff)) \
14 (uint64_t)bswap_32((uint32_t)((value) >> 32)))