Lines Matching refs:ilogb
2822 TEST(APFloatTest, ilogb) { in TEST() argument
2823 EXPECT_EQ(-1074, ilogb(APFloat::getSmallest(APFloat::IEEEdouble, false))); in TEST()
2824 EXPECT_EQ(-1074, ilogb(APFloat::getSmallest(APFloat::IEEEdouble, true))); in TEST()
2825 EXPECT_EQ(-1023, ilogb(APFloat(APFloat::IEEEdouble, "0x1.ffffffffffffep-1024"))); in TEST()
2826 EXPECT_EQ(-1023, ilogb(APFloat(APFloat::IEEEdouble, "0x1.ffffffffffffep-1023"))); in TEST()
2827 EXPECT_EQ(-1023, ilogb(APFloat(APFloat::IEEEdouble, "-0x1.ffffffffffffep-1023"))); in TEST()
2828 EXPECT_EQ(-51, ilogb(APFloat(APFloat::IEEEdouble, "0x1p-51"))); in TEST()
2829 EXPECT_EQ(-1023, ilogb(APFloat(APFloat::IEEEdouble, "0x1.c60f120d9f87cp-1023"))); in TEST()
2830 EXPECT_EQ(-2, ilogb(APFloat(APFloat::IEEEdouble, "0x0.ffffp-1"))); in TEST()
2831 EXPECT_EQ(-1023, ilogb(APFloat(APFloat::IEEEdouble, "0x1.fffep-1023"))); in TEST()
2832 EXPECT_EQ(1023, ilogb(APFloat::getLargest(APFloat::IEEEdouble, false))); in TEST()
2833 EXPECT_EQ(1023, ilogb(APFloat::getLargest(APFloat::IEEEdouble, true))); in TEST()
2836 EXPECT_EQ(0, ilogb(APFloat(APFloat::IEEEsingle, "0x1p+0"))); in TEST()
2837 EXPECT_EQ(0, ilogb(APFloat(APFloat::IEEEsingle, "-0x1p+0"))); in TEST()
2838 EXPECT_EQ(42, ilogb(APFloat(APFloat::IEEEsingle, "0x1p+42"))); in TEST()
2839 EXPECT_EQ(-42, ilogb(APFloat(APFloat::IEEEsingle, "0x1p-42"))); in TEST()
2842 ilogb(APFloat::getInf(APFloat::IEEEsingle, false))); in TEST()
2844 ilogb(APFloat::getInf(APFloat::IEEEsingle, true))); in TEST()
2846 ilogb(APFloat::getZero(APFloat::IEEEsingle, false))); in TEST()
2848 ilogb(APFloat::getZero(APFloat::IEEEsingle, true))); in TEST()
2850 ilogb(APFloat::getNaN(APFloat::IEEEsingle, false))); in TEST()
2852 ilogb(APFloat::getSNaN(APFloat::IEEEsingle, false))); in TEST()
2854 EXPECT_EQ(127, ilogb(APFloat::getLargest(APFloat::IEEEsingle, false))); in TEST()
2855 EXPECT_EQ(127, ilogb(APFloat::getLargest(APFloat::IEEEsingle, true))); in TEST()
2857 EXPECT_EQ(-149, ilogb(APFloat::getSmallest(APFloat::IEEEsingle, false))); in TEST()
2858 EXPECT_EQ(-149, ilogb(APFloat::getSmallest(APFloat::IEEEsingle, true))); in TEST()
2860 ilogb(APFloat::getSmallestNormalized(APFloat::IEEEsingle, false))); in TEST()
2862 ilogb(APFloat::getSmallestNormalized(APFloat::IEEEsingle, true))); in TEST()