IntegerOps::log2max¶
Returns the base-2 logorithm of value. If value is not a power of two then the return value is rounded up to the next integer. The value is treated as an unsigned value. Returns zero if value is zero.
Synopsis¶
Declared in <src/Rose/StringUtility/IntegerOps.h>
template<typename T>
T
log2max(T value); Return Value¶
Rounded-up base-2 log value.
Parameters¶
| Name | Description |
|---|---|
| value | Input value. |
Created with MrDocs