roundUpToBinaryPower overloads

Synopses

Declared in <bdlb_bitutil.h>

Return the least power of 2 that is greater than or equal to the specified value, and 0 if the conversion was not successful. Note that the conversion will succeed if and only if 0 < value <= (1 << (sizeInBits(value) ‐ 1))

static
unsigned int
roundUpToBinaryPower(unsigned int value);

Same as the unsigned int overload.

static
unsigned long
roundUpToBinaryPower(unsigned long value);

Same as the unsigned int overload.

static
unsigned long long
roundUpToBinaryPower(unsigned long long value);

Created with MrDocs