fpu.C File Reference

#include "Util/fpu.H"
#include "Util/StringConversions.H"
#include "Util/log.H"
#include <cstdio>
Include dependency graph for fpu.C:

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

Detailed Description

manipulate floating-point unit (FPU) settings

Definition in file fpu.C.


Function Documentation

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().

Generated on Sun May 8 08:19:18 2011 for iLab Neuromorphic Vision Toolkit by  doxygen 1.6.3