Module dsalgo::bitops

source ·

Traits

bit scan forward
bit scan reverse
count leading zeros why L is asccociated variable rather than fixed u8?
count trailing zeros
this is not usually abbreviated as CLO unlike CLZ.
just alias of count_ones.

Functions

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