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 16 of file cstd.hh.

References t.

◆ cos()

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

Definition at line 172 of file cstd.hh.

◆ cos_iter()

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

Definition at line 117 of file cstd.hh.

References t, and openmsx::x.

◆ exp()

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

Definition at line 58 of file cstd.hh.

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

◆ exp2()

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

Definition at line 241 of file cstd.hh.

References Math::ln2, and openmsx::x.

◆ ipow()

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

Definition at line 52 of file cstd.hh.

References upow(), and openmsx::x.

◆ log()

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

Definition at line 207 of file cstd.hh.

References Math::e, repeat(), and openmsx::x.

Referenced by openmsx::Disk::logToPhys().

◆ log10()

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

Definition at line 229 of file cstd.hh.

References Math::ln10, and openmsx::x.

◆ log2()

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

Definition at line 223 of file cstd.hh.

References Math::ln2, and openmsx::x.

◆ pow()

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

Definition at line 235 of file cstd.hh.

References openmsx::x.

◆ round() [1/2]

constexpr double cstd::round ( double  x)
constexpr

Definition at line 246 of file cstd.hh.

References openmsx::x.

◆ round() [2/2]

constexpr float cstd::round ( float  x)
constexpr

Definition at line 252 of file cstd.hh.

References openmsx::x.

◆ simple_fmod()

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

Definition at line 89 of file cstd.hh.

References openmsx::x.

◆ sin()

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

Definition at line 138 of file cstd.hh.

◆ sin_iter()

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

Definition at line 96 of file cstd.hh.

References t, and openmsx::x.

◆ sqrt()

constexpr double cstd::sqrt ( double  x)
constexpr

Definition at line 258 of file cstd.hh.

References openmsx::x.

Referenced by PerfectMinimalHash::create(), gl::length(), and gl::rsqrt().

◆ upow()

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

Definition at line 41 of file cstd.hh.

References openmsx::x.

Referenced by exp(), and ipow().