Usage of the vector function vec_popcnt
TracyR 270007GUPM Visits (9812)
IBM XL C/C++ for AIX, V13.1 supports a vector population count procedure vec_popcnt. This built-in function computes the population count (number of set bits) in each element of their input. This function is valid only when the -qarch option is set to target POWER8™ processors.
The syntax of this function is:
Each element of the result is set to the number of set bits in the corresponding element of the input.