tlx
integer_log2.hpp File Reference

Go to the source code of this file.

Namespaces

 tlx
 

Functions

template<typename IntegerType >
static TLX_ADVANCED_CONSTEXPR unsigned integer_log2_floor_template (IntegerType i)
 calculate the log2 floor of an integer type More...
 
static TLX_ADVANCED_CONSTEXPR unsigned integer_log2_floor (int i)
 calculate the log2 floor of an integer type More...
 
static TLX_ADVANCED_CONSTEXPR unsigned integer_log2_floor (unsigned int i)
 calculate the log2 floor of an integer type More...
 
static TLX_ADVANCED_CONSTEXPR unsigned integer_log2_floor (long i)
 calculate the log2 floor of an integer type More...
 
static TLX_ADVANCED_CONSTEXPR unsigned integer_log2_floor (unsigned long i)
 calculate the log2 floor of an integer type More...
 
static TLX_ADVANCED_CONSTEXPR unsigned integer_log2_floor (long long i)
 calculate the log2 floor of an integer type More...
 
static TLX_ADVANCED_CONSTEXPR unsigned integer_log2_floor (unsigned long long i)
 calculate the log2 floor of an integer type More...
 
static TLX_ADVANCED_CONSTEXPR unsigned integer_log2_ceil (int i)
 calculate the log2 floor of an integer type More...
 
static TLX_ADVANCED_CONSTEXPR unsigned integer_log2_ceil (unsigned int i)
 calculate the log2 floor of an integer type More...
 
static TLX_ADVANCED_CONSTEXPR unsigned integer_log2_ceil (long i)
 calculate the log2 floor of an integer type More...
 
static TLX_ADVANCED_CONSTEXPR unsigned integer_log2_ceil (unsigned long i)
 calculate the log2 floor of an integer type More...
 
static TLX_ADVANCED_CONSTEXPR unsigned integer_log2_ceil (long long i)
 calculate the log2 floor of an integer type More...
 
static TLX_ADVANCED_CONSTEXPR unsigned integer_log2_ceil (unsigned long long i)
 calculate the log2 floor of an integer type More...