core::arch::x86_64

Function _tzcnt_u64

1.27.0 · source
pub unsafe fn _tzcnt_u64(x: u64) -> u64
Available on x86-64 and target feature bmi1 only.
Expand description

Counts the number of trailing least significant zero bits.

When the source operand is 0, it returns its size in bits.

Intel’s documentation