Swap the byte order (i.e. endianness)
| 75 | |
| 76 | // Swap the byte order (i.e. endianness) |
| 77 | static inline uint32_t byteSwap(uint32_t value) { |
| 78 | return static_cast<uint32_t>(ORC_BYTE_SWAP32(value)); |
| 79 | } |
| 80 | static inline double byteSwap(double value) { |
| 81 | const uint64_t swapped = ORC_BYTE_SWAP64(safeCopy<uint64_t>(value)); |
| 82 | return safeCopy<double>(swapped); |
no outgoing calls
no test coverage detected