BloombergLP::bdlb::BitMaskUtil::ge64

Return a mask with all bits at or above index set.

Synopsis

Declared in <bdlb_bitmaskutil.h>

static
uint64_t
ge64(int index);

Description

Return the unsigned integral value having all bits at positions greater than or equal to the specified index set to 1, and all other bits set to 0. The behavior is undefined unless 0 <= index <= # of bits in result.

Return Value

mask with all bits at or above index set

Parameters

NameDescription
indexlowest bit position that is set