Namespace for static bit‐manipulation helpers used by BitStringUtil.

Synopsis

Declared in <bdlb_bitstringimputil.h>

struct BitStringImpUtil;

Description

This struct provides a namespace for static functions to be used solely in the implementation of BitStringUtil. The "Manipulators" are intended to be provided as arguments to templates in bdlb_bitstringutil, whereas the "Accessors" are to be called directly within that component.

Enums

Name

Description

Unnamed enum

Number of bits in a uint64_t.

Static Member Functions

Name

Description

andEqBits

Bitwise AND numBits of srcValue into those in *dstValue.

andEqWord

Assign to *dstValue the value of *dstValue bitwise AND‐ed with srcValue.

find1AtMaxIndexRaw

Return the index of the highest‐order set bit in a non‐zero value.

find1AtMinIndexRaw

Return the index of the lowest‐order set bit in a non‐zero value.

minusEqBits

Bitwise MINUS numBits of srcValue from those in *dstValue.

minusEqWord

Assign to *dstValue the value of *dstValue bitwise AND‐ed with the complement of srcValue.

orEqBits

Bitwise OR numBits of srcValue into those in *dstValue.

orEqWord

Assign to *dstValue the value of *dstValue bitwise OR‐ed with srcValue.

setEqBits

Replace numBits in *dstValue with the low‐order bits of srcValue.

setEqWord

Assign to *dstValue the value of srcValue.

xorEqBits

Bitwise XOR numBits of srcValue into those in *dstValue.

xorEqWord

Assign to *dstValue the value of *dstValue bitwise XOR‐ed with srcValue.

Created with MrDocs