|
cds
2.3.2
|
Bit operations. More...
Functions | |
| template<typename T > | |
| static int | LSB (T nArg) |
| Get least significant bit (LSB) number (1..32/64), 0 if nArg == 0. | |
| template<typename T > | |
| static int | LSBnz (T nArg) |
| Get least significant bit (LSB) number (0..31/63) More... | |
| template<typename T > | |
| static int | MSB (T nArg) |
| Get most significant bit (MSB) number (1..32/64), 0 if nArg == 0. | |
| template<typename T > | |
| static int | MSBnz (T nArg) |
| Get most significant bit (MSB) number (0..31/63) More... | |
| template<typename T > | |
| static int | SBC (T nArg) |
| Get non-zero bit count of a word. | |
| template<typename T > | |
| static int | ZBC (T nArg) |
| Get zero bit count of a word. | |
| template<typename T > | |
| static T | RBO (T nArg) |
Reverse bit order of nArg. | |
| template<typename T > | |
| static bool | complement (T &nArg, int nBit) |
Complement bit nBit in nArg. | |
| template<typename T > | |
| static T | RandXorShift (T x) |
| Simple random number generator. | |
Bit operations.
|
inlinestatic |
Get least significant bit (LSB) number (0..31/63)
Precondition: nArg != 0
|
inlinestatic |
Get most significant bit (MSB) number (0..31/63)
Precondition: nArg != 0