openMSX
Functions
cstd Namespace Reference

Functions

template<typename Iter1 , typename Iter2 >
constexpr void iter_swap (Iter1 a, Iter2 b)
 
template<typename InputIt , typename UnaryPredicate >
constexpr InputIt find_if_not (InputIt first, InputIt last, UnaryPredicate p)
 
template<typename ForwardIt , typename UnaryPredicate >
constexpr ForwardIt partition (ForwardIt first, ForwardIt last, UnaryPredicate p)
 
template<typename RAIt , typename Compare = std::less<>>
constexpr void sort (RAIt first, RAIt last, Compare cmp=Compare{})
 
template<typename RandomAccessRange , typename Compare = std::less<>>
constexpr void sort (RandomAccessRange &&range, Compare cmp=Compare{})
 
template<typename InputIt1 , typename InputIt2 >
constexpr bool lexicographical_compare (InputIt1 first1, InputIt1 last1, InputIt2 first2, InputIt2 last2)
 
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)
 

Function Documentation

◆ cos()

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

Definition at line 244 of file cstd.hh.

Referenced by lexicographical_compare().

◆ cos_iter()

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

Definition at line 189 of file cstd.hh.

References t, and openmsx::x.

◆ exp()

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

Definition at line 130 of file cstd.hh.

References M_E, t, and upow().

Referenced by lexicographical_compare().

◆ exp2()

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

Definition at line 313 of file cstd.hh.

References M_LN2, and openmsx::x.

Referenced by lexicographical_compare().

◆ find_if_not()

template<typename InputIt , typename UnaryPredicate >
constexpr InputIt cstd::find_if_not ( InputIt  first,
InputIt  last,
UnaryPredicate  p 
)

Definition at line 35 of file cstd.hh.

Referenced by partition().

◆ ipow()

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

Definition at line 124 of file cstd.hh.

References upow().

◆ iter_swap()

template<typename Iter1 , typename Iter2 >
constexpr void cstd::iter_swap ( Iter1  a,
Iter2  b 
)

Definition at line 27 of file cstd.hh.

Referenced by partition().

◆ lexicographical_compare()

template<typename InputIt1 , typename InputIt2 >
constexpr bool cstd::lexicographical_compare ( InputIt1  first1,
InputIt1  last1,
InputIt2  first2,
InputIt2  last2 
)

Definition at line 83 of file cstd.hh.

References cos(), exp(), exp2(), log(), log10(), log2(), pow(), round(), sin(), and openmsx::x.

◆ log()

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

Definition at line 279 of file cstd.hh.

References M_E.

Referenced by openmsx::Disk::getName(), and lexicographical_compare().

◆ log10()

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

Definition at line 301 of file cstd.hh.

References M_LN10, and openmsx::x.

Referenced by lexicographical_compare().

◆ log2()

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

Definition at line 295 of file cstd.hh.

References M_LN2, and openmsx::x.

Referenced by lexicographical_compare().

◆ partition()

template<typename ForwardIt , typename UnaryPredicate >
constexpr ForwardIt cstd::partition ( ForwardIt  first,
ForwardIt  last,
UnaryPredicate  p 
)

Definition at line 46 of file cstd.hh.

References find_if_not(), and iter_swap().

Referenced by sort().

◆ pow()

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

Definition at line 307 of file cstd.hh.

References openmsx::x.

Referenced by lexicographical_compare().

◆ round() [1/2]

constexpr double cstd::round ( double  x)

◆ round() [2/2]

constexpr float cstd::round ( float  x)

Definition at line 324 of file cstd.hh.

Referenced by lexicographical_compare().

◆ simple_fmod()

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

Definition at line 161 of file cstd.hh.

◆ sin()

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

Definition at line 210 of file cstd.hh.

Referenced by lexicographical_compare().

◆ sin_iter()

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

Definition at line 168 of file cstd.hh.

References t, and openmsx::x.

◆ sort() [1/2]

template<typename RAIt , typename Compare = std::less<>>
constexpr void cstd::sort ( RAIt  first,
RAIt  last,
Compare  cmp = Compare{} 
)

Definition at line 63 of file cstd.hh.

References openmsx::N, and partition().

Referenced by sort(), and openmsx::DBParser::text().

◆ sort() [2/2]

template<typename RandomAccessRange , typename Compare = std::less<>>
constexpr void cstd::sort ( RandomAccessRange &&  range,
Compare  cmp = Compare{} 
)

Definition at line 77 of file cstd.hh.

References sort().

◆ upow()

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

Definition at line 113 of file cstd.hh.

References openmsx::x.

Referenced by exp(), and ipow().