maths: style
This commit is contained in:
parent
0967c5252f
commit
381da163e2
@ -37,19 +37,22 @@ namespace util {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
//-----------------------------------------------------------------------------
|
///////////////////////////////////////////////////////////////////////////////
|
||||||
// Exponentials
|
// exponentials
|
||||||
|
|
||||||
template <typename T>
|
template <typename T>
|
||||||
constexpr T
|
constexpr T
|
||||||
pow2 [[gnu::pure]] (T value)
|
pow2 [[gnu::pure]] (T value)
|
||||||
{ return value * value; }
|
{ return value * value; }
|
||||||
|
|
||||||
|
|
||||||
|
//-----------------------------------------------------------------------------
|
||||||
template <typename T>
|
template <typename T>
|
||||||
constexpr T
|
constexpr T
|
||||||
pow [[gnu::pure]] (T x, unsigned y);
|
pow [[gnu::pure]] (T x, unsigned y);
|
||||||
|
|
||||||
|
|
||||||
|
//-----------------------------------------------------------------------------
|
||||||
template <typename T>
|
template <typename T>
|
||||||
bool
|
bool
|
||||||
is_pow2 [[gnu::pure]] (T value);
|
is_pow2 [[gnu::pure]] (T value);
|
||||||
|
Loading…
Reference in New Issue
Block a user