Function safe_arch::trailing_zero_count_u32
source ยท pub fn trailing_zero_count_u32(a: u32) -> u32
Available with target feature
bmi1
only.Expand description
Counts the number of trailing zero bits in a u32
.
An input of 0 gives 32.
- Intrinsic:
_tzcnt_u32
- Assembly:
tzcnt r32, r32