core::arch::x86

Function _tzcnt_u16

1.82.0 · source
pub unsafe fn _tzcnt_u16(x: u16) -> u16
Available on (x86 or x86-64) and target feature bmi1 and x86 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