BloombergLP::bdlb::BitUtil::roundUpToBinaryPower

Same as the unsigned int overload.

Synopsis

Declared in <bdlb_bitutil.h>

static
unsigned long
roundUpToBinaryPower(unsigned long value);

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