Optimized bit manipulation functions. Additionally provides replacement implementations of the compiler built-ins __builtin_popcount, __builtin_clz and __bulitin_ctz.
More...
|
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.
◆ __rev()
uint32_t __rev |
( |
uint32_t |
bits | ) |
|
Reverse the bits in a 32 bit word.
- Parameters
-
- Returns
- the 32 input bits reversed
◆ __revll()
uint64_t __revll |
( |
uint64_t |
bits | ) |
|
Reverse the bits in a 64 bit double word.
- Parameters
-
- Returns
- the 64 input bits reversed