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

Name

Description

value

value whose leading unset bits are counted

Created with MrDocs