OR-Tools  9.6
rounding_modes_benchmark.cc File Reference

Go to the source code of this file.

Classes

struct  RoundToNearestEven
 
class  StdRoundingScope
 
struct  StdRounding
 
class  LowLevelRoundingScope
 
struct  LowLevelRounding
 
struct  Avx512Rounding
 
struct  Interval
 

Macros

#define BENCHMARK(fn, n)
 

Typedefs

typedef Interval(* IntervalFunction) (int n)
 

Functions

unsigned int GetFloatingPointControlRegister ()
 
void SetFloatingPointControlRegister (unsigned int status)
 
void SetRoundingMode (int status, int mode)
 
void Runner (IntervalFunction f, int n)
 
template<typename Impl >
Interval SumOfIntegers (int n)
 
template Interval SumOfIntegers< RoundToNearestEven > (int)
 
template Interval SumOfIntegers< StdRounding > (int)
 
template Interval SumOfIntegers< LowLevelRounding > (int)
 
template Interval SumOfIntegers< Avx512Rounding > (int)
 
template<typename Impl >
Interval SumOfSquareRoots (int n)
 
template Interval SumOfSquareRoots< RoundToNearestEven > (int)
 
template Interval SumOfSquareRoots< StdRounding > (int)
 
template Interval SumOfSquareRoots< LowLevelRounding > (int)
 
template Interval SumOfSquareRoots< Avx512Rounding > (int)
 
int main ()
 

Macro Definition Documentation

◆ BENCHMARK

#define BENCHMARK (   fn,
 
)
Value:
{ \
printf("%s,", #fn); \
Runner(fn, n); \
}

Definition at line 320 of file rounding_modes_benchmark.cc.

Typedef Documentation

◆ IntervalFunction

typedef Interval(* IntervalFunction) (int n)

Definition at line 249 of file rounding_modes_benchmark.cc.

Function Documentation

◆ GetFloatingPointControlRegister()

unsigned int GetFloatingPointControlRegister ( )
inline

Definition at line 154 of file rounding_modes_benchmark.cc.

◆ main()

int main ( )

Definition at line 326 of file rounding_modes_benchmark.cc.

◆ Runner()

void Runner ( IntervalFunction  f,
int  n 
)

Definition at line 255 of file rounding_modes_benchmark.cc.

◆ SetFloatingPointControlRegister()

void SetFloatingPointControlRegister ( unsigned int  status)
inline

Definition at line 165 of file rounding_modes_benchmark.cc.

◆ SetRoundingMode()

void SetRoundingMode ( int  status,
int  mode 
)
inline

Definition at line 173 of file rounding_modes_benchmark.cc.

◆ SumOfIntegers()

Interval SumOfIntegers ( int  n)

Definition at line 272 of file rounding_modes_benchmark.cc.

◆ SumOfIntegers< Avx512Rounding >()

template Interval SumOfIntegers< Avx512Rounding > ( int  )

◆ SumOfIntegers< LowLevelRounding >()

template Interval SumOfIntegers< LowLevelRounding > ( int  )

◆ SumOfIntegers< RoundToNearestEven >()

template Interval SumOfIntegers< RoundToNearestEven > ( int  )

◆ SumOfIntegers< StdRounding >()

template Interval SumOfIntegers< StdRounding > ( int  )

◆ SumOfSquareRoots()

Interval SumOfSquareRoots ( int  n)

Definition at line 303 of file rounding_modes_benchmark.cc.

◆ SumOfSquareRoots< Avx512Rounding >()

template Interval SumOfSquareRoots< Avx512Rounding > ( int  )

◆ SumOfSquareRoots< LowLevelRounding >()

◆ SumOfSquareRoots< RoundToNearestEven >()

◆ SumOfSquareRoots< StdRounding >()

template Interval SumOfSquareRoots< StdRounding > ( int  )