log2 overloads

Synopses

Declared in <bdlb_bitutil.h>

Return the base‐2 logarithm of the specified value rounded up to the nearest integer. The behavior is undefined unless 0 < value.

static
int
log2(unsigned int value);

Same as the unsigned int overload.

static
int
log2(unsigned long value);

Same as the unsigned int overload.

static
int
log2(unsigned long long value);

Created with MrDocs