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 ( sign || (shiftDist < -15) ) goto invalid;
71 sig64 |=
UINT64_C( 0x0001000000000000 );
72 negShiftDist = -shiftDist;
73 z = sig64<<negShiftDist | sig0>>(shiftDist & 63);
74 if ( exact && (
uint64_t) (sig0<<negShiftDist) ) {
76 }
77 } else {
78
79
80 if ( 49 <= shiftDist ) {
81 if ( exact && (exp | sig64 | sig0) ) {
83 }
84 return 0;
85 }
86
87
88 if ( sign ) goto invalid;
89 sig64 |=
UINT64_C( 0x0001000000000000 );
90 z = sig64>>shiftDist;
91 if ( exact && (sig0 || (z<<shiftDist != sig64)) ) {
93 }
94 }
95 return z;
96
97
98 invalid:
100 return
103
104}
const GenericPointer< typename T::ValueType > T2 T::AllocatorType & a
void softfloat_raiseFlags(uint_fast8_t flags)
#define ui64_fromPosOverflow
#define ui64_fromNegOverflow
THREAD_LOCAL uint_fast8_t softfloat_exceptionFlags
unsigned __int64 uint64_t