BloombergLP::bdlb::BitUtil::roundUpToBinaryPower

roundUpToBinaryPower overloads

Synopses

Declared in <bdlb_bitutil.h>

Return the least power of 2 not less than value.

static
unsigned int
roundUpToBinaryPower(unsigned int value);
» more...

Same as the unsigned int overload.

static
unsigned long
roundUpToBinaryPower(unsigned long value);
» more...

Same as the unsigned int overload.

static
unsigned long long
roundUpToBinaryPower(unsigned long long value);
» more...

Return Value

least power of 2 not less than value, or 0 on failure

Parameters

NameDescription
valuevalue to round up to a power of 2