Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

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

  1. 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.

Example Usage

  • No labels