base_uint::bits

Returns the position of the highest bit set plus one, or zero if the value is zero.

Synopsis

Declared in <arith_uint256.h>

unsigned int
bits() const;

Return Value

The one-based index of the most significant set bit, or zero.