45{
46 union ui128_f128 uA;
48 bool sign;
54
55
56
58 uiA64 = uA.ui.v64;
59 uiA0 = uA.ui.v0;
60 sign = signF128UI64( uiA64 );
61 exp = expF128UI64( uiA64 );
62 sig64 = fracF128UI64( uiA64 );
63 sig0 = uiA0;
64
65
66 shiftDist = 0x402F - exp;
67 if ( shiftDist < 0 ) {
68
69
70 if ( shiftDist < -14 ) {
71 if (
72 (uiA64 ==
UINT64_C( 0xC03E000000000000 ))
73 && (sig0 <
UINT64_C( 0x0002000000000000 ))
74 ) {
75 if ( exact && sig0 ) {
77 }
78 return -
INT64_C( 0x7FFFFFFFFFFFFFFF ) - 1;
79 }
81 return
84 }
85
86
87 sig64 |=
UINT64_C( 0x0001000000000000 );
88 negShiftDist = -shiftDist;
89 absZ = sig64<<negShiftDist | sig0>>(shiftDist & 63);
90 if ( exact && (
uint64_t) (sig0<<negShiftDist) ) {
92 }
93 } else {
94
95
96 if ( 49 <= shiftDist ) {
97 if ( exact && (exp | sig64 | sig0) ) {
99 }
100 return 0;
101 }
102
103
104 sig64 |=
UINT64_C( 0x0001000000000000 );
105 absZ = sig64>>shiftDist;
106 if ( exact && (sig0 || (absZ<<shiftDist != sig64)) ) {
108 }
109 }
110 return sign ? -absZ : absZ;
111
112}
const GenericPointer< typename T::ValueType > T2 T::AllocatorType & a
void softfloat_raiseFlags(uint_fast8_t flags)
#define i64_fromNegOverflow
#define i64_fromPosOverflow
THREAD_LOCAL uint_fast8_t softfloat_exceptionFlags
unsigned __int64 uint64_t