Thrill  0.1
round_to_power_of_two.cpp File Reference
#include <tlx/math/round_to_power_of_two.hpp>
#include <cstddef>
Include dependency graph for round_to_power_of_two.cpp:

Go to the source code of this file.

tlx

## Functions

int round_down_to_power_of_two (int i)
does what it says: round down to next power of two More...

unsigned int round_down_to_power_of_two (unsigned int i)
does what it says: round down to next power of two More...

long round_down_to_power_of_two (long i)
does what it says: round down to next power of two More...

unsigned long round_down_to_power_of_two (unsigned long i)
does what it says: round down to next power of two More...

long long round_down_to_power_of_two (long long i)
does what it says: round down to next power of two More...

unsigned long long round_down_to_power_of_two (unsigned long long i)
does what it says: round down to next power of two More...

int round_up_to_power_of_two (int i)
does what it says: round up to next power of two More...

unsigned int round_up_to_power_of_two (unsigned int i)
does what it says: round up to next power of two More...

long round_up_to_power_of_two (long i)
does what it says: round up to next power of two More...

unsigned long round_up_to_power_of_two (unsigned long i)
does what it says: round up to next power of two More...

long long round_up_to_power_of_two (long long i)
does what it says: round up to next power of two More...

unsigned long long round_up_to_power_of_two (unsigned long long i)
does what it says: round up to next power of two More...

template<typename Integral >
static Integral round_up_to_power_of_two_template (Integral n)