BloombergLP::bdlb::BitStringImpUtil::andEqBits

Bitwise AND numBits of srcValue into those in *dstValue.

Synopsis

Declared in <bdlb_bitstringimputil.h>

static
void
andEqBits(
    uint64_t* dstValue,
    int dstIndex,
    uint64_t srcValue,
    int numBits);

Description

Bitwise AND the specified least-significant numBits in the specified srcValue to those in the specified dstValue starting at the specified dstIndex. The behavior is undefined unless 0 <= dstIndex, 0 <= numBits, and dstIndex + numBits <= k_BITS_PER_UINT64.

Parameters

NameDescription
dstValuedestination word to modify
dstIndexindex of the first destination bit
srcValuesource bits to AND
numBitsnumber of bits to AND