| 55 | static_assert(ByteSwap(uint8_t(0x12)) == 0x12); |
| 56 | |
| 57 | int main() |
| 58 | { |
| 59 | assert(ByteSwap(uint64_t(0x123456789ABCDEF0)) == |
| 60 | 0xF0DEBC9A78563412); |
| 61 | assert(ByteSwap(uint32_t(0x12345678)) == 0x78563412); |
| 62 | assert(ByteSwap(uint16_t(0x1234)) == 0x3412); |
| 63 | assert(ByteSwap(uint8_t(0x12)) == 0x12); |
| 64 | } |
| 65 | #else |
| 66 | int main() |
| 67 | { |
nothing calls this directly
no test coverage detected