Skip to main content

## vec_cntlz

# Function vec_cntlz

Source

    pub unsafe fn vec_cntlz<T>(a: T) -> Twhere
        T: VectorCntlz,

🔬This is a nightly-only experimental API. (`stdarch_powerpc` #111145)
Available on PowerPC and target feature `altivec` and (PowerPC or PowerPC64) only.
Expand description

Vector Count Leading Zeros

### §Purpose

Returns a vector containing the number of most-significant bits equal to zero of each corresponding element of the source vector.

### §Result value

The value of each element of r is set to the number of leading zeros of the corresponding element of a.