BloombergLP::bdlb::BitUtil::numLeadingUnsetBits

Return the number of consecutive 0 bits starting from the most-significant bit in the specified value.

Synopsis

Declared in <bdlb_bitutil.h>

static
int
numLeadingUnsetBits(unsigned int value);

Return Value

number of consecutive leading 0 bits in value

Parameters

NameDescription
valuevalue whose leading unset bits are counted