File softfloat_util.h
FileList > common > softfloat_util.h
Go to the source code of this file
#include "softfloat.h"
Public Functions
Type | Name |
---|---|
uint32_t | from_float32 (const float32_t x) |
uint64_t | from_float64 (const float64_t x) |
void | softfloat_init (uint32_t rm) |
float32_t | to_float32 (const uint32_t x) |
float64_t | to_float64 (const uint64_t x) |
Macros
Type | Name |
---|---|
define | F32_SIGN 0x80000000 |
define | F64_SIGN UINT64\_C(0x8000000000000000) |
define | defaultNaNF32UI 0x7FC00000 |
define | defaultNaNF64UI UINT64\_C(0x7FF8000000000000) |
define | expF32UI (a) (((a) >> 23) & 0xFF) |
define | expF64UI (a) (((a) >> 52) & 0x7FF) |
define | fracF32UI (a) ((a) & 0x007FFFFF) |
define | fracF64UI (a) ((a) & UINT64\_C(0x000FFFFFFFFFFFFF)) |
define | isNaNF32UI (a) (((~(a) & 0x7F800000) == 0) && ((a) & 0x007FFFFF)) |
define | isNaNF64UI (a) /* multi line expression */ |
define | isSigNaNF32UI (uiA) ((((uiA) & 0x7FC00000) == 0x7F800000) && ((uiA) & 0x003FFFFF)) |
define | isSigNaNF64UI (uiA) /* multi line expression */ |
define | signF32UI (a) ((bool)((uint32\_t)(a) >> 31)) |
define | signF64UI (a) ((bool)((uint64\_t)(a) >> 63)) |
Public Functions Documentation
function from_float32
function from_float64
function softfloat_init
function to_float32
function to_float64
Macro Definition Documentation
define F32_SIGN
define F64_SIGN
define defaultNaNF32UI
define defaultNaNF64UI
define expF32UI
define expF64UI
define fracF32UI
define fracF64UI
define isNaNF32UI
define isNaNF64UI
define isSigNaNF32UI
define isSigNaNF64UI
define signF32UI
define signF64UI
The documentation for this class was generated from the following file projects/simtix/src/simtix/common/softfloat_util.h