liblisa::semantics::default::builder

Function bit_mask

pub const fn bit_mask<const N: usize, A: FastOpImpl>(
    a: ExprBuilder<N, A>,
) -> ExprBuilder<{ _ }, BitMaskOp<A>>
Expand description

Computes (1 << N) - 1, which is an integer with the lowest N bits set to 1 and the rest to 0.