#include <stdbool.h>
#include <stdint.h>
#include "platform.h"
#include "internals.h"
#include "specialize.h"
#include "softfloat.h"
Go to the source code of this file.
◆ f128M_to_f64()
Definition at line 55 of file f128M_to_f64.c.
56{
59 bool sign;
66
67
68
74
75
76 if ( exp == 0x7FFF ) {
80 } else {
82 }
83 goto uiZ;
84 }
85
86
88 frac64 = frac64<<14 | frac32>>18;
89 if ( (frac32 & 0x0003FFFF) || aWPtr[
indexWord( 4, 0 )] ) frac64 |= 1;
90 if ( ! (exp | frac64) ) {
92 goto uiZ;
93 }
94
95
96 exp -= 0x3C01;
98 if ( exp < -0x1000 ) exp = -0x1000;
99 }
100 return
102 sign, exp, frac64 |
UINT64_C( 0x4000000000000000 ) );
103
104
105 uiZ:
106 uZ.ui = uiZ;
107 return uZ.f;
108
109}
#define softfloat_f128MToCommonNaN(aWPtr, zPtr)
#define softfloat_commonNaNToF64UI(aPtr)
#define fracF128UI96(a96)
float64_t softfloat_roundPackToF64(bool, int_fast16_t, uint_fast64_t)
#define packToF64UI(sign, exp, sig)
#define signF128UI96(a96)
#define indexWord(total, n)
#define indexWordHi(total)
unsigned __int64 uint64_t