Embedded Template Library 1.0
|
Classes | |
struct | etl::power< NV, POWER > |
struct | etl::power_of_2_round_up< NV > |
struct | etl::power_of_2_round_up< 0 > |
struct | etl::power_of_2_round_down< NV > |
struct | etl::power_of_2_round_down< 0 > |
struct | etl::power_of_2_round_down< 1 > |
struct | etl::power_of_2_round_down< 2 > |
struct | etl::is_power_of_2< NV > |
struct | etl::is_power_of_2< 0 > |
struct | etl::is_power_of_2< 1 > |
power<N, POWER> : Calculates N to the power POWER.
struct etl::power |
struct etl::power_of_2_round_up |
Calculates the rounded up power of 2.
Public Types | |
enum | value_type { value = 1 << (etl::log2<NV - 1>::value + 1) } |
struct etl::power_of_2_round_up< 0 > |
struct etl::power_of_2_round_down |
Calculates the rounded down power of 2.
Public Types | |
enum | value_type { value = 1 << (etl::log2<NV - 1>::value) } |
struct etl::power_of_2_round_down< 0 > |
struct etl::power_of_2_round_down< 1 > |
struct etl::power_of_2_round_down< 2 > |
struct etl::is_power_of_2 |
struct etl::is_power_of_2< 0 > |