17static constexpr uint16_t Swap16(uint16_t x) {
return (x >> 8) | (x << 8); }
19static constexpr uint32_t Swap32(uint32_t x) {
20 return Swap16(x >> 16) | (Swap16(x & 0xffff) << 16);
23static constexpr uint64_t Swap64(uint64_t x) {
24 return Swap32(x >> 32) |
25 (
static_cast<uint64_t
>(Swap32(x & 0xffffffff)) << 32);