BloombergLP::bdlb::BitUtil::roundUp

roundUp overloads

Synopses

Declared in <bdlb_bitutil.h>

Return the least multiple of boundary not less than value.

static
unsigned int
roundUp(
    unsigned int value,
    unsigned int boundary);
» more...

Same as the unsigned int overload.

static
unsigned long
roundUp(
    unsigned long value,
    unsigned long boundary);
» more...

Same as the unsigned int overload.

static
unsigned long long
roundUp(
    unsigned long long value,
    unsigned long long boundary);
» more...

Return Value

least multiple of boundary not less than value, or 0

Parameters

NameDescription
valuevalue to round up
boundarypower-of-two alignment boundary