rotate left and wrap around to the right
| 50 | |
| 51 | /// rotate left and wrap around to the right |
| 52 | inline uint64_t rotateLeft(uint64_t x, uint8_t numBits) |
| 53 | { |
| 54 | return (x << numBits) | (x >> (64 - numBits)); |
| 55 | } |
| 56 | |
| 57 | /// convert litte vs big endian |
| 58 | inline uint64_t swap(uint64_t x) |