Math Functions


Defines

#define FAST_CEIL(d)   static_cast<INT32>(ceil(d))
#define FAST_FLOOR(d)   static_cast<INT32>(floor(d))
#define FAST_ROUND(d)   static_cast<INT32>(floor((d)+.5))
#define FAST_TRUNCATE(d)   static_cast<INT32>(d)
#define IND   IEEE_NaN()
#define INF   IEEE_Infinity()
#define NAN   IEEE_NaN()
#define NINF   (-IEEE_Infinity())
#define ROUND   FAST_ROUND

Functions

void ConvIEEEToVAX (double ieee_value, UINT8 *vax_value)
double ConvVAXToIEEE (const UINT8 *vax_value)
LIBEXPORT double IEEE_Infinity (void)
LIBEXPORT double IEEE_NaN (void)
bool IsInfPos (double x)
bool IsNaN (double x)

Define Documentation

#define FAST_CEIL (  )     static_cast<INT32>(ceil(d))

Definition at line 165 of file math.h.

#define FAST_FLOOR (  )     static_cast<INT32>(floor(d))

Definition at line 166 of file math.h.

#define FAST_ROUND (  )     static_cast<INT32>(floor((d)+.5))

Definition at line 164 of file math.h.

#define FAST_TRUNCATE (  )     static_cast<INT32>(d)

Definition at line 167 of file math.h.

#define IND   IEEE_NaN()

Definition at line 234 of file math.h.

#define INF   IEEE_Infinity()

Definition at line 235 of file math.h.

#define NAN   IEEE_NaN()

Definition at line 231 of file math.h.

#define NINF   (-IEEE_Infinity())

Definition at line 236 of file math.h.

#define ROUND   FAST_ROUND

Deprecated:
Replaced by FAST_ROUND

Definition at line 173 of file math.h.


Function Documentation

void ConvIEEEToVAX ( double  ieee_value,
UINT8 vax_value 
)

Convert IEEE floating point to VAX floating point.

Parameters:
ieee_value  IEEE floating point value
vax_value  Pointer to 8 byte UINT8 array for VAX floating point value

double ConvVAXToIEEE ( const UINT8 vax_value  ) 

Convert VAX floating point to IEEE floating point.

Returns:
: IEEE floating point value
Parameters:
vax_value  Pointer to 8 byte UINT8 array for VAX floating point value

LIBEXPORT double IEEE_Infinity ( void   ) 

Returns the IEEE representation of Infinity.

LIBEXPORT double IEEE_NaN ( void   ) 

Returns the IEEE representation of Not A Number.

bool IsInfPos ( double  x  )  [inline]

Definition at line 214 of file math.h.

bool IsNaN ( double  x  )  [inline]

Definition at line 198 of file math.h.


Generated on Thu Apr 26 04:09:40 2007 for TNTsdk by  doxygen 1.5.2