#include "Util/fpu.H"
#include "Util/StringConversions.H"
#include "Util/log.H"
#include <cstdio>
Go to the source code of this file.
Functions | |
FpuPrecision | getFpuPrecision () |
Query the fpu's current precision. | |
void | setFpuPrecision (FpuPrecision prec) |
Set the fpu's precision. | |
std::string | convertToString (const FpuPrecision &val) |
FpuPrecision -> string. | |
void | convertFromString (const std::string &str, FpuPrecision &val) |
string -> FpuPrecision | |
FpuRoundingMode | getFpuRoundingMode () |
Query the fpu's current rounding mode. | |
void | setFpuRoundingMode (FpuRoundingMode roundmode) |
Set the fpu's rounding mode. | |
std::string | convertToString (const FpuRoundingMode &val) |
FpuRoundingMode -> string. | |
void | convertFromString (const std::string &str, FpuRoundingMode &val) |
string -> FpuRoundingMode |
manipulate floating-point unit (FPU) settings
Definition in file fpu.C.
void convertFromString | ( | const std::string & | str, | |
FpuRoundingMode & | val | |||
) |
string -> FpuRoundingMode
Definition at line 262 of file fpu.C.
References FPU_ROUND_DOWN, FPU_ROUND_NEAR, FPU_ROUND_UP, and FPU_ROUND_ZERO.
void convertFromString | ( | const std::string & | str, | |
FpuPrecision & | val | |||
) |
string -> FpuPrecision
Definition at line 180 of file fpu.C.
References FPU_PREC_DOUBLE, FPU_PREC_EXTENDED, and FPU_PREC_SINGLE.
std::string convertToString | ( | const FpuRoundingMode & | val | ) |
FpuRoundingMode -> string.
Definition at line 248 of file fpu.C.
References FPU_ROUND_DOWN, FPU_ROUND_NEAR, FPU_ROUND_UP, and FPU_ROUND_ZERO.
std::string convertToString | ( | const FpuPrecision & | val | ) |
FpuPrecision -> string.
Definition at line 167 of file fpu.C.
References FPU_PREC_DOUBLE, FPU_PREC_EXTENDED, and FPU_PREC_SINGLE.
FpuPrecision getFpuPrecision | ( | ) |
Query the fpu's current precision.
Definition at line 115 of file fpu.C.
References FPU_PREC_DOUBLE, FPU_PREC_EXTENDED, and FPU_PREC_SINGLE.
Referenced by ModelManager::start1().
FpuRoundingMode getFpuRoundingMode | ( | ) |
Query the fpu's current rounding mode.
Definition at line 190 of file fpu.C.
References FPU_ROUND_DOWN, FPU_ROUND_NEAR, FPU_ROUND_UP, and FPU_ROUND_ZERO.
Referenced by ModelManager::start1().
void setFpuPrecision | ( | FpuPrecision | prec | ) |
Set the fpu's precision.
Definition at line 136 of file fpu.C.
References FPU_PREC_DOUBLE, FPU_PREC_EXTENDED, and FPU_PREC_SINGLE.
Referenced by ModelManager::paramChanged().
void setFpuRoundingMode | ( | FpuRoundingMode | roundmode | ) |
Set the fpu's rounding mode.
Definition at line 212 of file fpu.C.
References FPU_ROUND_DOWN, FPU_ROUND_NEAR, FPU_ROUND_UP, and FPU_ROUND_ZERO.
Referenced by ModelManager::paramChanged().