diff --git a/maths.hpp b/maths.hpp index 83ef32d1..452f35c0 100644 --- a/maths.hpp +++ b/maths.hpp @@ -192,6 +192,13 @@ namespace cruft { } + //------------------------------------------------------------------------- + template + constexpr auto + pow2 [[gnu::const]] (ValueT const &val) + { return val * val; } + + //------------------------------------------------------------------------- template constexpr