BloombergLP::bdlb::BitStringUtil::num0

Return the number of 0 bits in a range of bitString.

Synopsis

Declared in <bdlb_bitstringutil.h>

static
std::size_t
num0(
    uint64_t const* bitString,
    std::size_t index,
    std::size_t numBits);

Description

Return the number of 0 bits in the specified numBits beginning at the specified index in the specified bitString. The behavior is undefined unless bitString has a length of at least index + numBits.

Return Value

count of 0 bits in the examined range

Parameters

NameDescription
bitStringbit string to examine
indexstarting bit position
numBitsnumber of bits to examine