maths: style

This commit is contained in:
Danny Robson 2015-11-16 13:21:38 +11:00
parent 791f8b2bcd
commit eb2722bfa4

View File

@ -75,6 +75,7 @@ namespace util {
log2 (T val); log2 (T val);
//-------------------------------------------------------------------------
template <typename T> template <typename T>
T T
log2up (T val); log2up (T val);
@ -130,6 +131,7 @@ namespace util {
unsigned unsigned
digits (const T& value); digits (const T& value);
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
constexpr int sign (int); constexpr int sign (int);
constexpr float sign (float); constexpr float sign (float);
@ -244,10 +246,10 @@ namespace util {
/////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////
// angles, trig // angles, trig
template <typename T> template <typename T>
constexpr T PI = T(3.141592653589793238462643); constexpr T PI = T(3.141592653589793238462643);
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
template <typename T> template <typename T>
constexpr T E = T(2.71828182845904523536028747135266250); constexpr T E = T(2.71828182845904523536028747135266250);