3.266. __nv_popc

i32 @__nv_popc(i32 %x)

Count the number of bits that are set to 1 in a 32 bit integer.

Count the number of bits that are set to 1 in x.

Returns

Returns a value between 0 and 32 inclusive representing the number of set bits.