Module bitops

Source

Traits§

BSF
bit scan forward
BSR
bit scan reverse
CLZ
count leading zeros why L is asccociated variable rather than fixed u8?
CTZ
count trailing zeros
CountLeadingOnes
this is not usually abbreviated as CLO unlike CLZ.
CountOnes
CountTrailingOnes
CountZeros
Inverse
Popcount
just alias of count_ones.
Reverse
ShrUntilOdd

Functions§

flip
invert
equivalent to (2^k - 1) ^ n for k bit integer.
reset
rot_l
rotate left can be called safely only in release mode.
shr_until_odd
shift right