BloombergLP::bdlb::BitUtil::numBitsSet

Return the number of 1 bits in the specified value.

Synopsis

Declared in <bdlb_bitutil.h>

static
int
numBitsSet(unsigned int value);

Return Value

number of 1 bits in value

Parameters

NameDescription
valuevalue whose set bits are counted