core::arch::x86

Function _lzcnt_u32

1.27.0 · Source
pub unsafe fn _lzcnt_u32(x: u32) -> u32
Available on (x86 or x86-64) and target feature lzcnt and x86 only.
Expand description

Counts the leading most significant zero bits.

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

Intel’s documentation