BloombergLP::bdlb::BitUtil::numTrailingUnsetBits

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

Synopsis

Declared in <bdlb_bitutil.h>

static
int
numTrailingUnsetBits(unsigned int value);

Return Value

number of consecutive trailing 0 bits in value

Parameters

NameDescription
valuevalue whose trailing unset bits are counted