Version: SMASH-3.1
pow.h File Reference

Go to the source code of this file.

Namespaces

 smash
 

Functions

template<class T >
constexpr T smash::pow_int (const T base, unsigned const exponent)
 Efficient template for calculating integer powers using squaring. More...
 
template<class T >
constexpr T smash::square (const T base)
 Efficient template for calculating the square. More...