Function safe_arch::bit_zero_high_index_u32

source ยท
pub fn bit_zero_high_index_u32(a: u32, index: u32) -> u32
Available with target feature bmi2 only.
Expand description

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

  • Intrinsic: _bzhi_u32
  • Assembly: bzhi r32, r32, r32