Module pleco::bit_twiddles [] [src]

Collection of useful functions oriented around modifying singular bits of integer types. You will rarely need to interact with this module directly unless you need functions involving the manipulation of bits.

Functions

bit_scan_forward

Returns index of the Least Significant Bit

bit_scan_forward_rust_trailing

Returns index of the Least Significant Bit

bit_scan_reverse

Returns index of the Most Significant Bit

lsb

Returns the least significant bit

more_than_one

Returns if there are more than one bits in a u64

popcount64

Counts the number of bits