maths: add integer power operation
This commit is contained in:
parent
d3c300053b
commit
4260c91cd0
@ -37,6 +37,11 @@ pow2 [[gnu::pure]] (T value)
|
||||
{ return value * value; }
|
||||
|
||||
|
||||
template <typename T>
|
||||
T
|
||||
pow (T x, unsigned y);
|
||||
|
||||
|
||||
template <typename T>
|
||||
bool
|
||||
is_pow2 [[gnu::pure]] (T value);
|
||||
|
Loading…
Reference in New Issue
Block a user