| 678 | } |
| 679 | |
| 680 | static inline uintptr_t mi_rotl(uintptr_t x, uintptr_t shift) { |
| 681 | shift %= MI_INTPTR_BITS; |
| 682 | return (shift==0 ? x : ((x << shift) | (x >> (MI_INTPTR_BITS - shift)))); |
| 683 | } |
| 684 | static inline uintptr_t mi_rotr(uintptr_t x, uintptr_t shift) { |
| 685 | shift %= MI_INTPTR_BITS; |
| 686 | return (shift==0 ? x : ((x >> shift) | (x << (MI_INTPTR_BITS - shift)))); |