|
Embedded Template Library
1.0
|
Classes | |
| struct | etl::log< N, BASE > |
| struct | etl::log2< N > |
| struct | etl::log10< N > |
Enumerations | |
| enum | value_type { value = (N >= BASE) ? 1 + log<N / BASE, BASE>::value : 0 } |
| enum | value_type { value = log<N, 2>::value } |
| enum | value_type { value = log<N, 10>::value } |
log<N, BASE> : Calculates logs to any base, rounded down to the nearest integer.
log2<N> : Calculates logs to base 2, rounded down to the nearest integer.
log10<N> : Calculates logs to base 10, rounded down to the nearest integer.