@@ -3670,15 +3670,6 @@ double IEEEFloat::convertToDouble() const {
36703670 return api.bitsToDouble ();
36713671}
36723672
3673- #ifdef __FLOAT128__
3674- float128 IEEEFloat::convertToQuad () const {
3675- assert (semantics == (const llvm::fltSemantics *)&semIEEEquad &&
3676- " Float semantics are not IEEEquads" );
3677- APInt api = bitcastToAPInt ();
3678- return api.bitsToQuad ();
3679- }
3680- #endif
3681-
36823673// / Integer bit is explicit in this format. Intel hardware (387 and later)
36833674// / does not support these bit patterns:
36843675// / exponent = all 1's, integer bit 0, significand 0 ("pseudoinfinity")
@@ -5274,21 +5265,6 @@ double APFloat::convertToDouble() const {
52745265 return Temp.getIEEE ().convertToDouble ();
52755266}
52765267
5277- #ifdef __FLOAT128__
5278- float128 APFloat::convertToQuad () const {
5279- if (&getSemantics () == (const llvm::fltSemantics *)&semIEEEquad)
5280- return getIEEE ().convertToQuad ();
5281- assert (getSemantics ().isRepresentableBy (semIEEEquad) &&
5282- " Float semantics is not representable by IEEEquad" );
5283- APFloat Temp = *this ;
5284- bool LosesInfo;
5285- opStatus St = Temp.convert (semIEEEquad, rmNearestTiesToEven, &LosesInfo);
5286- assert (!(St & opInexact) && !LosesInfo && " Unexpected imprecision" );
5287- (void )St;
5288- return Temp.getIEEE ().convertToQuad ();
5289- }
5290- #endif
5291-
52925268float APFloat::convertToFloat () const {
52935269 if (&getSemantics () == (const llvm::fltSemantics *)&semIEEEsingle)
52945270 return getIEEE ().convertToFloat ();
0 commit comments