_popcnt32
Classification
Other, Bit Manipulation, CPUID Test: POPCNT
Header File
Instruction
POPCNT r32, r32
Synopsis
_popcnt32(int a);
Description
Count the number of bits set to 1 in 32-bit integer "a", and return that count in "dst".
Operation
dst := 0
FOR i := 0 to 31
IF a[i]
dst := dst + 1
FI
ENDFOR