Function bitm::n_lowest_bits_0_64

source ·
pub const fn n_lowest_bits_0_64(how_many: u8) -> u64
Expand description

Returns the largest how_many-bit number, i.e. 0..01..1 mask with how_many ones. how_many must be in range [0, 64].

It is a bit slower than n_lowest_bits and n_lowest_bits_1_64.