BloombergLP::bdlb::BitUtil::log2

Same as the unsigned int overload.

Synopsis

Declared in <bdlb_bitutil.h>

static
int
log2(unsigned long value);

Return Value

base-2 logarithm of value rounded up to the nearest integer

Parameters

NameDescription
valuevalue whose base-2 logarithm is returned