Skip to main content

bit_mask_u32

Function bit_mask_u32 

Source
pub const fn bit_mask_u32(x: usize) -> u32
Expand description

Returns a 32-bit bitmask of x low bits set, matching C++’s BIT_MASK32(x) from <bits.h>.