vec_cnttz
Purpose
Counts the least significant zero bits of each element of the given vector.
Note: This built-in function
is valid only when the -mcpu option is set to target POWER9 processors
or higher.
Syntax
d=vec_cnttz(a)
Result and argument types
The following table describes the types of the returned value and the function argument.
| d | a |
|---|---|
| vector signed char | vector signed char |
| vector unsigned char | vector unsigned char |
| vector signed short | vector signed short |
| vector unsigned short | vector unsigned short |
| vector signed int | vector signed int |
| vector unsigned int | vector unsigned int |
| vector signed long long | vector signed long long |
| vector unsigned long long | vector unsigned long long |
Result value
The value of each element of the result is set to the number of trailing zeros of the
corresponding element of a.