Speedup and bugfix for new Sh/Hl tool

This commit is contained in:
heckflosse
2018-04-26 14:32:43 +02:00
parent 6bea422836
commit c45ec6f16e
5 changed files with 62 additions and 34 deletions

View File

@@ -38,6 +38,12 @@ constexpr T SQR(T x)
return x * x;
}
template<typename T>
constexpr T pow4(T x)
{
return SQR(SQR(x));
}
template<typename T>
constexpr const T& min(const T& a)
{