PandA-2024.02
Functions | Variables
softfloat.c File Reference
#include "milieu.h"
#include "softfloat.h"
#include "softfloat-macros"
#include "softfloat-specialize"
Include dependency graph for softfloat.c:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

INLINE bits64 extractFloat64Frac (float64 a)
 
INLINE int16 extractFloat64Exp (float64 a)
 
INLINE flag extractFloat64Sign (float64 a)
 
static void normalizeFloat64Subnormal (bits64 aSig, int16 *zExpPtr, bits64 *zSigPtr)
 
INLINE float64 packFloat64 (flag zSign, int16 zExp, bits64 zSig)
 
static float64 roundAndPackFloat64 (flag zSign, int16 zExp, bits64 zSig)
 
static float64 normalizeRoundAndPackFloat64 (flag zSign, int16 zExp, bits64 zSig)
 
float64 int32_to_float64 (int32 a)
 
static float64 addFloat64Sigs (float64 a, float64 b, flag zSign)
 
static float64 subFloat64Sigs (float64 a, float64 b, flag zSign)
 
float64 float64_add (float64 a, float64 b)
 
float64 float64_mul (float64 a, float64 b)
 
float64 float64_div (float64 a, float64 b)
 
flag float64_le (float64 a, float64 b)
 
flag float64_ge (float64 a, float64 b)
 
float64 float64_neg (float64 x)
 

Variables

int8 float_rounding_mode = float_round_nearest_even
 
int8 float_exception_flags = 0
 

Function Documentation

◆ addFloat64Sigs()

static float64 addFloat64Sigs ( float64  a,
float64  b,
flag  zSign 
)
static

Definition at line 286 of file softfloat.c.

References extractFloat64Exp(), extractFloat64Frac(), LIT64, packFloat64(), and roundAndPackFloat64().

Referenced by float64_add().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ extractFloat64Exp()

INLINE int16 extractFloat64Exp ( float64  a)

Definition at line 94 of file softfloat.c.

References INLINE.

◆ extractFloat64Frac()

INLINE bits64 extractFloat64Frac ( float64  a)

Definition at line 82 of file softfloat.c.

References INLINE, and LIT64.

◆ extractFloat64Sign()

INLINE flag extractFloat64Sign ( float64  a)

Definition at line 106 of file softfloat.c.

◆ float64_add()

float64 float64_add ( float64  a,
float64  b 
)

Definition at line 448 of file softfloat.c.

References addFloat64Sigs(), extractFloat64Sign(), and subFloat64Sigs().

Here is the call graph for this function:

◆ float64_div()

float64 float64_div ( float64  a,
float64  b 
)

◆ float64_ge()

flag float64_ge ( float64  a,
float64  b 
)

Definition at line 640 of file softfloat.c.

References float64_le().

Here is the call graph for this function:

◆ float64_le()

flag float64_le ( float64  a,
float64  b 
)

Definition at line 621 of file softfloat.c.

References extractFloat64Exp(), extractFloat64Frac(), extractFloat64Sign(), and float_flag_invalid.

Here is the call graph for this function:

◆ float64_mul()

float64 float64_mul ( float64  a,
float64  b 
)

◆ float64_neg()

float64 float64_neg ( float64  x)

Definition at line 647 of file softfloat.c.

◆ int32_to_float64()

float64 int32_to_float64 ( int32  a)

Definition at line 260 of file softfloat.c.

References packFloat64().

Here is the call graph for this function:

◆ normalizeFloat64Subnormal()

static void normalizeFloat64Subnormal ( bits64  aSig,
int16 zExpPtr,
bits64 zSigPtr 
)
static

Definition at line 121 of file softfloat.c.

References INLINE.

Referenced by float64_div(), and float64_mul().

Here is the caller graph for this function:

◆ normalizeRoundAndPackFloat64()

static float64 normalizeRoundAndPackFloat64 ( flag  zSign,
int16  zExp,
bits64  zSig 
)
static

Definition at line 244 of file softfloat.c.

References roundAndPackFloat64().

Referenced by subFloat64Sigs().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ packFloat64()

INLINE float64 packFloat64 ( flag  zSign,
int16  zExp,
bits64  zSig 
)

Definition at line 143 of file softfloat.c.

◆ roundAndPackFloat64()

static float64 roundAndPackFloat64 ( flag  zSign,
int16  zExp,
bits64  zSig 
)
static

◆ subFloat64Sigs()

static float64 subFloat64Sigs ( float64  a,
float64  b,
flag  zSign 
)
static

Definition at line 367 of file softfloat.c.

References extractFloat64Exp(), extractFloat64Frac(), float_flag_invalid, float_round_down, float_rounding_mode, LIT64, normalizeRoundAndPackFloat64(), and packFloat64().

Referenced by float64_add().

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ float_exception_flags

int8 float_exception_flags = 0

Definition at line 58 of file softfloat.c.

◆ float_rounding_mode

int8 float_rounding_mode = float_round_nearest_even

Definition at line 57 of file softfloat.c.


Generated on Mon Feb 12 2024 13:03:02 for PandA-2024.02 by doxygen 1.8.13