Description
Counts the number of bits set in a 32 bit word.
Files
cpu_core.h/cpu_core.c
Prototypes
Arguments
val
Data value to count the number of bits set.
Returned Value
Number of contiguous, least-significant, trailing zero bits in val
.
Required Configuration
None.
Notes / Warnings
- For non-zero values, the returned number of contiguous, least-significant, trailing zero bits is also equivalent to the bit position of the least-significant set bit.