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

Name

Description

value

value whose set bits are counted

Created with MrDocs