@@ -3670,15 +3670,6 @@ double IEEEFloat::convertToDouble() const {
3670
3670
return api.bitsToDouble ();
3671
3671
}
3672
3672
3673
- #ifdef HAS_IEE754_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
-
3682
3673
// / Integer bit is explicit in this format. Intel hardware (387 and later)
3683
3674
// / does not support these bit patterns:
3684
3675
// / exponent = all 1's, integer bit 0, significand 0 ("pseudoinfinity")
@@ -5274,21 +5265,6 @@ double APFloat::convertToDouble() const {
5274
5265
return Temp.getIEEE ().convertToDouble ();
5275
5266
}
5276
5267
5277
- #ifdef HAS_IEE754_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
-
5292
5268
float APFloat::convertToFloat () const {
5293
5269
if (&getSemantics () == (const llvm::fltSemantics *)&semIEEEsingle)
5294
5270
return getIEEE ().convertToFloat ();
0 commit comments