float_emul.h File Reference

Back to the index.

Classes | Macros | Functions
float_emul.h File Reference
#include <math.h>
#include "misc.h"

Go to the source code of this file.

Classes

struct  ieee_float_value
 

Macros

#define IEEE_FMT_S   1 /* single, 32-bit float */
 
#define IEEE_FMT_D   2 /* double, 64-bit float */
 
#define IEEE_FMT_W   3 /* word, 32-bit integer */
 
#define IEEE_FMT_L   4 /* long, 64-bit integer */
 

Functions

void ieee_interpret_float_value (uint64_t x, struct ieee_float_value *fvp, int fmt)
 
uint64_t ieee_store_float_value (double nf, int fmt)
 

Macro Definition Documentation

◆ IEEE_FMT_D

#define IEEE_FMT_D   2 /* double, 64-bit float */

Definition at line 44 of file float_emul.h.

Referenced by ieee_interpret_float_value(), ieee_store_float_value(), and X().

◆ IEEE_FMT_L

#define IEEE_FMT_L   4 /* long, 64-bit integer */

Definition at line 46 of file float_emul.h.

Referenced by ieee_interpret_float_value(), and ieee_store_float_value().

◆ IEEE_FMT_S

#define IEEE_FMT_S   1 /* single, 32-bit float */

Definition at line 43 of file float_emul.h.

Referenced by ieee_interpret_float_value(), ieee_store_float_value(), pvr_render(), and X().

◆ IEEE_FMT_W

#define IEEE_FMT_W   3 /* word, 32-bit integer */

Definition at line 45 of file float_emul.h.

Referenced by ieee_interpret_float_value(), and ieee_store_float_value().

Function Documentation

◆ ieee_interpret_float_value()

void ieee_interpret_float_value ( uint64_t  x,
struct ieee_float_value fvp,
int  fmt 
)

Definition at line 49 of file float_emul.cc.

References ieee_float_value::f, fatal(), IEEE_FMT_D, IEEE_FMT_L, IEEE_FMT_S, IEEE_FMT_W, and ieee_float_value::nan.

Referenced by pvr_render(), and X().

◆ ieee_store_float_value()

uint64_t ieee_store_float_value ( double  nf,
int  fmt 
)

Definition at line 238 of file float_emul.cc.

References fatal(), IEEE_FMT_D, IEEE_FMT_L, IEEE_FMT_S, and IEEE_FMT_W.

Referenced by X().


Generated on Fri Dec 7 2018 19:52:23 for GXemul by doxygen 1.8.13