fpu.H File Reference

#include <string>
Include dependency graph for fpu.H:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Enumerations

enum  FpuPrecision { FPU_PREC_SINGLE, FPU_PREC_DOUBLE, FPU_PREC_EXTENDED }
 

Represents different floating-point precision modes.

More...
enum  FpuRoundingMode { FPU_ROUND_NEAR, FPU_ROUND_DOWN, FPU_ROUND_UP, FPU_ROUND_ZERO }
 

Represents different floating-point rounding modes.

More...

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 mode)
 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.H.


Enumeration Type Documentation

Represents different floating-point precision modes.

Enumerator:
FPU_PREC_SINGLE 

fpu operates in single precision (32-bit, 24-bit significand)

FPU_PREC_DOUBLE 

fpu operates in double precision (64-bit, 53-bit significand)

FPU_PREC_EXTENDED 

default: fpu operates in extended precision (80-bit, 64-bit significand)

Definition at line 50 of file fpu.H.

Represents different floating-point rounding modes.

Enumerator:
FPU_ROUND_NEAR 

fpu rounds to nearest value

FPU_ROUND_DOWN 

fpu rounds toward -inf

FPU_ROUND_UP 

fpu rounds toward +inf

FPU_ROUND_ZERO 

fpu rounds toward zero

Definition at line 76 of file fpu.H.


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  mode  ) 

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