core::arch::x86_64

Function _tzcnt_u32

1.27.0 · Source
pub unsafe fn _tzcnt_u32(x: u32) -> u32
Available on (x86 or x86-64) and target feature bmi1 and x86-64 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