Optimized bit manipulation functions. More...
Functions | |
uint32_t | __rev (uint32_t bits) |
Reverse the bits in a 32 bit word. More... | |
uint64_t | __revll (uint64_t bits) |
Reverse the bits in a 64 bit double word. More... | |
Optimized bit manipulation functions.
Additionally provides replacement implementations of the compiler built-ins __builtin_popcount, __builtin_clz and __bulitin_ctz
uint32_t __rev | ( | uint32_t | bits | ) |
Reverse the bits in a 32 bit word.
bits | 32 bit input |
uint64_t __revll | ( | uint64_t | bits | ) |
Reverse the bits in a 64 bit double word.
bits | 64 bit input |