roundUpToBinaryPower overloads
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...
least power of 2 not less than value, or 0 on failure
| Name | Description |
|---|---|
| value | value to round up to a power of 2 |