src/air/754.c File Reference

#include "air.h"
#include "privateAir.h"
#include <teemEndian.h>
#include <teemQnanhibit.h>

Include dependency graph for 754.c:


Defines

#define FP_SET_F(flt, s, e, m)
#define FP_GET_F(s, e, m, flt)
#define FP_SET_D(dbl, s, e, m0, m1)
#define FP_GET_D(s, e, m0, m1, dbl)

Functions

float airFPPartsToVal_f (unsigned int sign, unsigned int expo, unsigned int mant)
void airFPValToParts_f (unsigned int *signP, unsigned int *expoP, unsigned int *mantP, float v)
double airFPPartsToVal_d (unsigned int sign, unsigned int expo, unsigned int mant0, unsigned int mant1)
void airFPValToParts_d (unsigned int *signP, unsigned int *expoP, unsigned int *mant0P, unsigned int *mant1P, double v)
float airFPGen_f (int cls)
double airFPGen_d (int cls)
int airFPClass_f (float val)
int airFPClass_d (double val)
int airIsNaN (double g)
int airIsInf_f (float f)
int airIsInf_d (double d)
int airExists (double val)
float airNaN (void)
void airFPFprintf_f (FILE *file, float val)
void airFPFprintf_d (FILE *file, double val)

Variables

const int airMyQNaNHiBit = 0
const airFloat airFloatQNaN = {0x7fbfffff}
const airFloat airFloatSNaN = {0x7fffffff}
const airFloat airFloatPosInf = {0x7f800000}
const airFloat airFloatNegInf = {0xff800000}

Define Documentation

#define FP_GET_D ( s,
e,
m0,
m1,
dbl   ) 

Value:

(s) = dbl.c.sign; \
  (e) = dbl.c.expo; \
  (m0) = dbl.c.mant0; \
  (m1) = dbl.c.mant1

#define FP_GET_F ( s,
e,
m,
flt   ) 

Value:

(s) = flt.c.sign; \
  (e) = flt.c.expo; \
  (m) = flt.c.mant

#define FP_SET_D ( dbl,
s,
e,
m0,
m1   ) 

Value:

dbl.c.sign = (s); \
  dbl.c.expo = (e); \
  dbl.c.mant0 = (m0); \
  dbl.c.mant1 = (m1)

#define FP_SET_F ( flt,
s,
e,
 ) 

Value:

flt.c.sign = (s); \
  flt.c.expo = (e); \
  flt.c.mant = (m)


Function Documentation

int airExists ( double  val  ) 

int airFPClass_d ( double  val  ) 

int airFPClass_f ( float  val  ) 

void airFPFprintf_d ( FILE *  file,
double  val 
)

void airFPFprintf_f ( FILE *  file,
float  val 
)

double airFPGen_d ( int  cls  ) 

float airFPGen_f ( int  cls  ) 

double airFPPartsToVal_d ( unsigned int  sign,
unsigned int  expo,
unsigned int  mant0,
unsigned int  mant1 
)

float airFPPartsToVal_f ( unsigned int  sign,
unsigned int  expo,
unsigned int  mant 
)

void airFPValToParts_d ( unsigned int *  signP,
unsigned int *  expoP,
unsigned int *  mant0P,
unsigned int *  mant1P,
double  v 
)

void airFPValToParts_f ( unsigned int *  signP,
unsigned int *  expoP,
unsigned int *  mantP,
float  v 
)

int airIsInf_d ( double  d  ) 

int airIsInf_f ( float  f  ) 

int airIsNaN ( double  g  ) 

float airNaN ( void   ) 


Variable Documentation

const airFloat airFloatNegInf = {0xff800000}

const airFloat airFloatPosInf = {0x7f800000}

const airFloat airFloatQNaN = {0x7fbfffff}

const airFloat airFloatSNaN = {0x7fffffff}

const int airMyQNaNHiBit = 0


Generated on Sat May 9 03:55:03 2009 for Teem by  doxygen 1.5.9