[][src]Function safe_arch::bit_zero_high_index_u32

#[must_use]pub fn bit_zero_high_index_u32(a: u32, index: u32) -> u32
This is supported with target feature bmi2 only.

Zero out all high bits in a u32 starting at the index given.

assert_eq!(bit_zero_high_index_u32(0b1111, 0), 0b0000);
assert_eq!(bit_zero_high_index_u32(0b1111, 1), 0b0001);
assert_eq!(bit_zero_high_index_u32(0b1111, 2), 0b0011);
assert_eq!(bit_zero_high_index_u32(0b1111, 3), 0b0111);