reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

unittests/ADT/APFloatTest.cpp
 1552   test.convert(APFloat::IEEEsingle(), APFloat::rmNearestTiesToEven, &losesInfo);
 1553   EXPECT_EQ(1.0f, test.convertToFloat());
 1556   test = APFloat(APFloat::x87DoubleExtended(), "0x1p-53");
 1557   test.add(APFloat(APFloat::x87DoubleExtended(), "1.0"), APFloat::rmNearestTiesToEven);
 1558   test.convert(APFloat::IEEEdouble(), APFloat::rmNearestTiesToEven, &losesInfo);
 1559   EXPECT_EQ(1.0, test.convertToDouble());
 1562   test = APFloat(APFloat::IEEEquad(), "0x1p-53");
 1563   test.add(APFloat(APFloat::IEEEquad(), "1.0"), APFloat::rmNearestTiesToEven);
 1564   test.convert(APFloat::IEEEdouble(), APFloat::rmNearestTiesToEven, &losesInfo);
 1565   EXPECT_EQ(1.0, test.convertToDouble());
 1568   test = APFloat(APFloat::x87DoubleExtended(), "0xf.fffffffp+28");
 1569   test.convert(APFloat::IEEEdouble(), APFloat::rmNearestTiesToEven, &losesInfo);
 1570   EXPECT_EQ(4294967295.0, test.convertToDouble());
 1573   test = APFloat::getSNaN(APFloat::IEEEsingle());
 1575   test.convert(APFloat::x87DoubleExtended(), APFloat::rmNearestTiesToEven,
 1577   EXPECT_TRUE(test.bitwiseIsEqual(X87SNaN));
 1580   test = APFloat::getQNaN(APFloat::IEEEsingle());
 1582   test.convert(APFloat::x87DoubleExtended(), APFloat::rmNearestTiesToEven,
 1584   EXPECT_TRUE(test.bitwiseIsEqual(X87QNaN));
 1587   test = APFloat::getSNaN(APFloat::x87DoubleExtended());
 1588   test.convert(APFloat::x87DoubleExtended(), APFloat::rmNearestTiesToEven,
 1590   EXPECT_TRUE(test.bitwiseIsEqual(X87SNaN));
 1593   test = APFloat::getQNaN(APFloat::x87DoubleExtended());
 1594   test.convert(APFloat::x87DoubleExtended(), APFloat::rmNearestTiesToEven,
 1596   EXPECT_TRUE(test.bitwiseIsEqual(X87QNaN));