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

References

unittests/ADT/APFloatTest.cpp
 3214   Frac = frexp(PZero, Exp, RM);
 3216   EXPECT_TRUE(Frac.isPosZero());
 3218   Frac = frexp(MZero, Exp, RM);
 3220   EXPECT_TRUE(Frac.isNegZero());
 3223   Frac = frexp(One, Exp, RM);
 3225   EXPECT_TRUE(APFloat(APFloat::IEEEdouble(), "0x1p-1").bitwiseIsEqual(Frac));
 3227   Frac = frexp(MOne, Exp, RM);
 3229   EXPECT_TRUE(APFloat(APFloat::IEEEdouble(), "-0x1p-1").bitwiseIsEqual(Frac));
 3231   Frac = frexp(LargestDenormal, Exp, RM);
 3233   EXPECT_TRUE(APFloat(APFloat::IEEEdouble(), "0x1.ffffffffffffep-1").bitwiseIsEqual(Frac));
 3235   Frac = frexp(NegLargestDenormal, Exp, RM);
 3237   EXPECT_TRUE(APFloat(APFloat::IEEEdouble(), "-0x1.ffffffffffffep-1").bitwiseIsEqual(Frac));
 3240   Frac = frexp(Smallest, Exp, RM);
 3242   EXPECT_TRUE(APFloat(APFloat::IEEEdouble(), "0x1p-1").bitwiseIsEqual(Frac));
 3244   Frac = frexp(NegSmallest, Exp, RM);
 3246   EXPECT_TRUE(APFloat(APFloat::IEEEdouble(), "-0x1p-1").bitwiseIsEqual(Frac));
 3249   Frac = frexp(Largest, Exp, RM);
 3251   EXPECT_TRUE(APFloat(APFloat::IEEEdouble(), "0x1.fffffffffffffp-1").bitwiseIsEqual(Frac));
 3253   Frac = frexp(NegLargest, Exp, RM);
 3255   EXPECT_TRUE(APFloat(APFloat::IEEEdouble(), "-0x1.fffffffffffffp-1").bitwiseIsEqual(Frac));
 3258   Frac = frexp(PInf, Exp, RM);
 3260   EXPECT_TRUE(Frac.isInfinity() && !Frac.isNegative());
 3260   EXPECT_TRUE(Frac.isInfinity() && !Frac.isNegative());
 3262   Frac = frexp(MInf, Exp, RM);
 3264   EXPECT_TRUE(Frac.isInfinity() && Frac.isNegative());
 3264   EXPECT_TRUE(Frac.isInfinity() && Frac.isNegative());
 3266   Frac = frexp(QPNaN, Exp, RM);
 3268   EXPECT_TRUE(Frac.isNaN());
 3270   Frac = frexp(QMNaN, Exp, RM);
 3272   EXPECT_TRUE(Frac.isNaN());
 3274   Frac = frexp(SNaN, Exp, RM);
 3276   EXPECT_TRUE(Frac.isNaN() && !Frac.isSignaling());
 3276   EXPECT_TRUE(Frac.isNaN() && !Frac.isSignaling());
 3278   Frac = frexp(SNaNWithPayload, Exp, RM);
 3280   EXPECT_TRUE(Frac.isNaN() && !Frac.isSignaling());
 3280   EXPECT_TRUE(Frac.isNaN() && !Frac.isSignaling());
 3281   EXPECT_EQ(Payload, Frac.bitcastToAPInt().getLoBits(51));
 3283   Frac = frexp(APFloat(APFloat::IEEEdouble(), "0x0.ffffp-1"), Exp, RM);
 3285   EXPECT_TRUE(APFloat(APFloat::IEEEdouble(), "0x1.fffep-1").bitwiseIsEqual(Frac));
 3287   Frac = frexp(APFloat(APFloat::IEEEdouble(), "0x1p-51"), Exp, RM);
 3289   EXPECT_TRUE(APFloat(APFloat::IEEEdouble(), "0x1p-1").bitwiseIsEqual(Frac));
 3291   Frac = frexp(APFloat(APFloat::IEEEdouble(), "0x1.c60f120d9f87cp+51"), Exp, RM);
 3293   EXPECT_TRUE(APFloat(APFloat::IEEEdouble(), "0x1.c60f120d9f87cp-1").bitwiseIsEqual(Frac));