| 44 | } |
| 45 | |
| 46 | uint64_t rotate_right(uint64_t x, unsigned width, unsigned amount) |
| 47 | { |
| 48 | amount = amount % width; |
| 49 | x = (x >> amount) | (x << (width - amount)); |
| 50 | x = (width < 64) ? x & (((uint64_t)1 << width) - 1) : x; |
| 51 | return x; |
| 52 | } |
| 53 | |
| 54 | DecodeBitMasks_ReturnType DecodeBitMasks( |
| 55 | uint8_t /*bit*/ immN, uint8_t /*bit(6)*/ imms, uint8_t /*bit(6)*/ immr) |