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);

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);

Return Value

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

Parameters

Name

Description

value

value to round up to a power of 2

Created with MrDocs