Function safe_arch::trailing_zero_count_u64
source · pub fn trailing_zero_count_u64(a: u64) -> u64
Available with target feature
bmi1
only.Expand description
Counts the number of trailing zero bits in a u64
.
An input of 0 gives 64.
- Intrinsic:
_tzcnt_u64
- Assembly:
tzcnt r64, r64