vec_cntlz

Purpose

Computes the count of leading zero bits of each element of the input.

Syntax

d=vec_cntlz(a)

Result and argument types

The following table describes the types of the returned value and the function arguments.

d a
vector unsigned char vector unsigned char
vector unsigned char vector signed char
vector unsigned short vector unsigned short
vector unsigned short vector signed short
vector unsigned int vector unsigned int
vector unsigned int vector signed int
vector unsigned long long vector unsigned long long
vector unsigned long long vector signed long long

Result value

Each element of the result is set to the number of leading zeros of the corresponding element of a.



Voice your opinion on getting help information Ask IBM compiler experts a technical question in the IBM XL compilers forum Reach out to us