Template Function librapid::log2(T)#
Defined in File coreMath.hpp
Function Documentation#
-
template<typename T>
constexpr auto librapid::log2(T val)# Return the logarithm base-2 of a given value. Note that, for integer values, this function will cast the input value to a floating point type before calculating the logarithm.
- Template Parameters
T – Data type
- Parameters
val – Input value
- Returns
Logarithm base-2 of the input value