openMSX
Functions
cstd Namespace Reference

Functions

template<typename T >
constexpr T abs (T t)
 
constexpr double upow (double x, unsigned u)
 
constexpr double ipow (double x, int i)
 
template<int ITERATIONS>
constexpr double exp (double x)
 
constexpr double simple_fmod (double x, double y)
 
template<int ITERATIONS>
constexpr double sin_iter (double x)
 
template<int ITERATIONS>
constexpr double cos_iter (double x)
 
template<int ITERATIONS>
constexpr double sin (double x)
 
template<int ITERATIONS>
constexpr double cos (double x)
 
template<int E_ITERATIONS, int L_ITERATIONS>
constexpr double log (double x)
 
template<int E_ITERATIONS, int L_ITERATIONS>
constexpr double log2 (double x)
 
template<int E_ITERATIONS, int L_ITERATIONS>
constexpr double log10 (double x)
 
template<int E_ITERATIONS, int L_ITERATIONS>
constexpr double pow (double x, double y)
 
template<int ITERATIONS>
constexpr double exp2 (double x)
 
constexpr double round (double x)
 
constexpr float round (float x)
 
constexpr double sqrt (double x)
 

Function Documentation

◆ abs()

template<typename T >
constexpr T cstd::abs ( t)
constexpr

Definition at line 17 of file cstd.hh.

References t.

◆ cos()

template<int ITERATIONS>
constexpr double cstd::cos ( double  x)
constexpr

Definition at line 173 of file cstd.hh.

References Math::pi, and simple_fmod().

◆ cos_iter()

template<int ITERATIONS>
constexpr double cstd::cos_iter ( double  x)
constexpr

Definition at line 118 of file cstd.hh.

References t.

◆ exp()

template<int ITERATIONS>
constexpr double cstd::exp ( double  x)
constexpr

Definition at line 59 of file cstd.hh.

References Math::e, t, upow(), and xrange().

◆ exp2()

template<int ITERATIONS>
constexpr double cstd::exp2 ( double  x)
constexpr

Definition at line 242 of file cstd.hh.

References Math::ln2.

◆ ipow()

constexpr double cstd::ipow ( double  x,
int  i 
)
constexpr

Definition at line 53 of file cstd.hh.

References upow().

◆ log()

template<int E_ITERATIONS, int L_ITERATIONS>
constexpr double cstd::log ( double  x)
constexpr

Definition at line 208 of file cstd.hh.

References Math::e, and repeat().

◆ log10()

template<int E_ITERATIONS, int L_ITERATIONS>
constexpr double cstd::log10 ( double  x)
constexpr

Definition at line 230 of file cstd.hh.

References Math::ln10.

◆ log2()

template<int E_ITERATIONS, int L_ITERATIONS>
constexpr double cstd::log2 ( double  x)
constexpr

Definition at line 224 of file cstd.hh.

References Math::ln2.

◆ pow()

template<int E_ITERATIONS, int L_ITERATIONS>
constexpr double cstd::pow ( double  x,
double  y 
)
constexpr

Definition at line 236 of file cstd.hh.

◆ round() [1/2]

constexpr double cstd::round ( double  x)
constexpr

Definition at line 247 of file cstd.hh.

◆ round() [2/2]

constexpr float cstd::round ( float  x)
constexpr

Definition at line 254 of file cstd.hh.

◆ simple_fmod()

constexpr double cstd::simple_fmod ( double  x,
double  y 
)
constexpr

Definition at line 90 of file cstd.hh.

Referenced by cos(), and sin().

◆ sin()

template<int ITERATIONS>
constexpr double cstd::sin ( double  x)
constexpr

Definition at line 139 of file cstd.hh.

References Math::pi, and simple_fmod().

◆ sin_iter()

template<int ITERATIONS>
constexpr double cstd::sin_iter ( double  x)
constexpr

Definition at line 97 of file cstd.hh.

References t.

◆ sqrt()

constexpr double cstd::sqrt ( double  x)
constexpr

Definition at line 261 of file cstd.hh.

Referenced by PerfectMinimalHash::create().

◆ upow()

constexpr double cstd::upow ( double  x,
unsigned  u 
)
constexpr

Definition at line 42 of file cstd.hh.

Referenced by exp(), and ipow().