CPU_PopCnt32
Description
Counts the number of bits set in a 32 bit word.
Files
cpu_core.h/cpu_core.c
Prototypes
CPU_INT08U CPU_PopCnt32 (CPU_INT32U value)
Arguments
val
Data value to count the number of bits set.
Returned Value
Number of set bits in val
.
Required Configuration
N/A
Notes / Warnings
N/A
Example Usage
CPU_DATA val; CPU_DATA pop; val = 0x0643A718; pop = CPU_PopCnt32(val);