Lines Matching refs:IEEEsingle
41 EXPECT_FALSE(APFloat::getQNaN(APFloat::IEEEsingle, false).isSignaling()); in TEST()
42 EXPECT_FALSE(APFloat::getQNaN(APFloat::IEEEsingle, true).isSignaling()); in TEST()
43 EXPECT_FALSE(APFloat::getQNaN(APFloat::IEEEsingle, false, &payload).isSignaling()); in TEST()
44 EXPECT_FALSE(APFloat::getQNaN(APFloat::IEEEsingle, true, &payload).isSignaling()); in TEST()
45 EXPECT_TRUE(APFloat::getSNaN(APFloat::IEEEsingle, false).isSignaling()); in TEST()
46 EXPECT_TRUE(APFloat::getSNaN(APFloat::IEEEsingle, true).isSignaling()); in TEST()
47 EXPECT_TRUE(APFloat::getSNaN(APFloat::IEEEsingle, false, &payload).isSignaling()); in TEST()
48 EXPECT_TRUE(APFloat::getSNaN(APFloat::IEEEsingle, true, &payload).isSignaling()); in TEST()
526 M1.convert(APFloat::IEEEsingle, APFloat::rmNearestTiesToEven, &losesInfo); in TEST()
560 EXPECT_FALSE(APFloat(APFloat::IEEEsingle, MinNormalStr).isDenormal()); in TEST()
561 EXPECT_FALSE(APFloat(APFloat::IEEEsingle, 0.0).isDenormal()); in TEST()
563 APFloat Val2(APFloat::IEEEsingle, 2.0e0); in TEST()
564 APFloat T(APFloat::IEEEsingle, MinNormalStr); in TEST()
1009 ASSERT_EQ(0x7fc00000, nanbits(APFloat::IEEEsingle, false, false, 0)); in TEST()
1010 ASSERT_EQ(0xffc00000, nanbits(APFloat::IEEEsingle, false, true, 0)); in TEST()
1011 ASSERT_EQ(0x7fc0ae72, nanbits(APFloat::IEEEsingle, false, false, 0xae72)); in TEST()
1012 ASSERT_EQ(0x7fffae72, nanbits(APFloat::IEEEsingle, false, false, 0xffffae72)); in TEST()
1013 ASSERT_EQ(0x7fa00000, nanbits(APFloat::IEEEsingle, true, false, 0)); in TEST()
1014 ASSERT_EQ(0xffa00000, nanbits(APFloat::IEEEsingle, true, true, 0)); in TEST()
1015 ASSERT_EQ(0x7f80ae72, nanbits(APFloat::IEEEsingle, true, false, 0xae72)); in TEST()
1016 ASSERT_EQ(0x7fbfae72, nanbits(APFloat::IEEEsingle, true, false, 0xffffae72)); in TEST()
1031 …EXPECT_DEATH(APFloat(APFloat::IEEEsingle, 0.0f).convertToDouble(), "Float semantics are not IEEEdo… in TEST()
1333 EXPECT_EQ(3.402823466e+38f, APFloat::getLargest(APFloat::IEEEsingle).convertToFloat()); in TEST()
1338 APFloat test = APFloat::getSmallest(APFloat::IEEEsingle, false); in TEST()
1339 APFloat expected = APFloat(APFloat::IEEEsingle, "0x0.000002p-126"); in TEST()
1345 test = APFloat::getSmallest(APFloat::IEEEsingle, true); in TEST()
1346 expected = APFloat(APFloat::IEEEsingle, "-0x0.000002p-126"); in TEST()
1368 APFloat test = APFloat::getSmallestNormalized(APFloat::IEEEsingle, false); in TEST()
1369 APFloat expected = APFloat(APFloat::IEEEsingle, "0x1p-126"); in TEST()
1375 test = APFloat::getSmallestNormalized(APFloat::IEEEsingle, true); in TEST()
1376 expected = APFloat(APFloat::IEEEsingle, "-0x1p-126"); in TEST()
1406 { &APFloat::IEEEsingle, false, {0, 0}, 1}, in TEST()
1407 { &APFloat::IEEEsingle, true, {0x80000000ULL, 0}, 1}, in TEST()
1448 test.convert(APFloat::IEEEsingle, APFloat::rmNearestTiesToEven, &losesInfo); in TEST()
1469 test = APFloat::getSNaN(APFloat::IEEEsingle); in TEST()
1476 test = APFloat::getQNaN(APFloat::IEEEsingle); in TEST()
1533 APFloat t(APFloat::IEEEsingle, "0x1p+0"); in TEST()
1535 t = APFloat(APFloat::IEEEsingle, "-0x1p+0"); in TEST()
1538 EXPECT_FALSE(APFloat::getInf(APFloat::IEEEsingle, false).isNegative()); in TEST()
1539 EXPECT_TRUE(APFloat::getInf(APFloat::IEEEsingle, true).isNegative()); in TEST()
1541 EXPECT_FALSE(APFloat::getZero(APFloat::IEEEsingle, false).isNegative()); in TEST()
1542 EXPECT_TRUE(APFloat::getZero(APFloat::IEEEsingle, true).isNegative()); in TEST()
1544 EXPECT_FALSE(APFloat::getNaN(APFloat::IEEEsingle, false).isNegative()); in TEST()
1545 EXPECT_TRUE(APFloat::getNaN(APFloat::IEEEsingle, true).isNegative()); in TEST()
1547 EXPECT_FALSE(APFloat::getSNaN(APFloat::IEEEsingle, false).isNegative()); in TEST()
1548 EXPECT_TRUE(APFloat::getSNaN(APFloat::IEEEsingle, true).isNegative()); in TEST()
1552 APFloat t(APFloat::IEEEsingle, "0x1p+0"); in TEST()
1555 EXPECT_FALSE(APFloat::getInf(APFloat::IEEEsingle, false).isNormal()); in TEST()
1556 EXPECT_FALSE(APFloat::getZero(APFloat::IEEEsingle, false).isNormal()); in TEST()
1557 EXPECT_FALSE(APFloat::getNaN(APFloat::IEEEsingle, false).isNormal()); in TEST()
1558 EXPECT_FALSE(APFloat::getSNaN(APFloat::IEEEsingle, false).isNormal()); in TEST()
1559 EXPECT_FALSE(APFloat(APFloat::IEEEsingle, "0x1p-149").isNormal()); in TEST()
1563 APFloat t(APFloat::IEEEsingle, "0x1p+0"); in TEST()
1565 EXPECT_FALSE(APFloat::getInf(APFloat::IEEEsingle, false).isFinite()); in TEST()
1566 EXPECT_TRUE(APFloat::getZero(APFloat::IEEEsingle, false).isFinite()); in TEST()
1567 EXPECT_FALSE(APFloat::getNaN(APFloat::IEEEsingle, false).isFinite()); in TEST()
1568 EXPECT_FALSE(APFloat::getSNaN(APFloat::IEEEsingle, false).isFinite()); in TEST()
1569 EXPECT_TRUE(APFloat(APFloat::IEEEsingle, "0x1p-149").isFinite()); in TEST()
1573 APFloat t(APFloat::IEEEsingle, "0x1p+0"); in TEST()
1575 EXPECT_TRUE(APFloat::getInf(APFloat::IEEEsingle, false).isInfinity()); in TEST()
1576 EXPECT_FALSE(APFloat::getZero(APFloat::IEEEsingle, false).isInfinity()); in TEST()
1577 EXPECT_FALSE(APFloat::getNaN(APFloat::IEEEsingle, false).isInfinity()); in TEST()
1578 EXPECT_FALSE(APFloat::getSNaN(APFloat::IEEEsingle, false).isInfinity()); in TEST()
1579 EXPECT_FALSE(APFloat(APFloat::IEEEsingle, "0x1p-149").isInfinity()); in TEST()
1583 APFloat t(APFloat::IEEEsingle, "0x1p+0"); in TEST()
1585 EXPECT_FALSE(APFloat::getInf(APFloat::IEEEsingle, false).isNaN()); in TEST()
1586 EXPECT_FALSE(APFloat::getZero(APFloat::IEEEsingle, false).isNaN()); in TEST()
1587 EXPECT_TRUE(APFloat::getNaN(APFloat::IEEEsingle, false).isNaN()); in TEST()
1588 EXPECT_TRUE(APFloat::getSNaN(APFloat::IEEEsingle, false).isNaN()); in TEST()
1589 EXPECT_FALSE(APFloat(APFloat::IEEEsingle, "0x1p-149").isNaN()); in TEST()
1594 EXPECT_TRUE(APFloat(APFloat::IEEEsingle, "0x1p+0").isFiniteNonZero()); in TEST()
1595 EXPECT_TRUE(APFloat(APFloat::IEEEsingle, "-0x1p+0").isFiniteNonZero()); in TEST()
1598 EXPECT_TRUE(APFloat(APFloat::IEEEsingle, "0x1p-149").isFiniteNonZero()); in TEST()
1599 EXPECT_TRUE(APFloat(APFloat::IEEEsingle, "-0x1p-149").isFiniteNonZero()); in TEST()
1602 EXPECT_FALSE(APFloat::getInf(APFloat::IEEEsingle, false).isFiniteNonZero()); in TEST()
1603 EXPECT_FALSE(APFloat::getInf(APFloat::IEEEsingle, true).isFiniteNonZero()); in TEST()
1606 EXPECT_FALSE(APFloat::getZero(APFloat::IEEEsingle, false).isFiniteNonZero()); in TEST()
1607 EXPECT_FALSE(APFloat::getZero(APFloat::IEEEsingle, true).isFiniteNonZero()); in TEST()
1611 EXPECT_FALSE(APFloat::getNaN(APFloat::IEEEsingle, false).isFiniteNonZero()); in TEST()
1612 EXPECT_FALSE(APFloat::getNaN(APFloat::IEEEsingle, true).isFiniteNonZero()); in TEST()
1616 EXPECT_FALSE(APFloat::getSNaN(APFloat::IEEEsingle, false).isFiniteNonZero()); in TEST()
1617 EXPECT_FALSE(APFloat::getSNaN(APFloat::IEEEsingle, true).isFiniteNonZero()); in TEST()
1628 APFloat PInf = APFloat::getInf(APFloat::IEEEsingle, false); in TEST()
1629 APFloat MInf = APFloat::getInf(APFloat::IEEEsingle, true); in TEST()
1630 APFloat PZero = APFloat::getZero(APFloat::IEEEsingle, false); in TEST()
1631 APFloat MZero = APFloat::getZero(APFloat::IEEEsingle, true); in TEST()
1632 APFloat QNaN = APFloat::getNaN(APFloat::IEEEsingle, false); in TEST()
1633 APFloat SNaN = APFloat::getSNaN(APFloat::IEEEsingle, false); in TEST()
1634 APFloat PNormalValue = APFloat(APFloat::IEEEsingle, "0x1p+0"); in TEST()
1635 APFloat MNormalValue = APFloat(APFloat::IEEEsingle, "-0x1p+0"); in TEST()
1636 APFloat PLargestValue = APFloat::getLargest(APFloat::IEEEsingle, false); in TEST()
1637 APFloat MLargestValue = APFloat::getLargest(APFloat::IEEEsingle, true); in TEST()
1638 APFloat PSmallestValue = APFloat::getSmallest(APFloat::IEEEsingle, false); in TEST()
1639 APFloat MSmallestValue = APFloat::getSmallest(APFloat::IEEEsingle, true); in TEST()
1641 APFloat::getSmallestNormalized(APFloat::IEEEsingle, false); in TEST()
1643 APFloat::getSmallestNormalized(APFloat::IEEEsingle, true); in TEST()
1900 APFloat result(APFloat::IEEEsingle, SpecialCaseTests[i].result); in TEST()
1916 APFloat PInf = APFloat::getInf(APFloat::IEEEsingle, false); in TEST()
1917 APFloat MInf = APFloat::getInf(APFloat::IEEEsingle, true); in TEST()
1918 APFloat PZero = APFloat::getZero(APFloat::IEEEsingle, false); in TEST()
1919 APFloat MZero = APFloat::getZero(APFloat::IEEEsingle, true); in TEST()
1920 APFloat QNaN = APFloat::getNaN(APFloat::IEEEsingle, false); in TEST()
1921 APFloat SNaN = APFloat::getSNaN(APFloat::IEEEsingle, false); in TEST()
1922 APFloat PNormalValue = APFloat(APFloat::IEEEsingle, "0x1p+0"); in TEST()
1923 APFloat MNormalValue = APFloat(APFloat::IEEEsingle, "-0x1p+0"); in TEST()
1924 APFloat PLargestValue = APFloat::getLargest(APFloat::IEEEsingle, false); in TEST()
1925 APFloat MLargestValue = APFloat::getLargest(APFloat::IEEEsingle, true); in TEST()
1926 APFloat PSmallestValue = APFloat::getSmallest(APFloat::IEEEsingle, false); in TEST()
1927 APFloat MSmallestValue = APFloat::getSmallest(APFloat::IEEEsingle, true); in TEST()
1929 APFloat::getSmallestNormalized(APFloat::IEEEsingle, false); in TEST()
1931 APFloat::getSmallestNormalized(APFloat::IEEEsingle, true); in TEST()
2188 APFloat result(APFloat::IEEEsingle, SpecialCaseTests[i].result); in TEST()
2204 APFloat PInf = APFloat::getInf(APFloat::IEEEsingle, false); in TEST()
2205 APFloat MInf = APFloat::getInf(APFloat::IEEEsingle, true); in TEST()
2206 APFloat PZero = APFloat::getZero(APFloat::IEEEsingle, false); in TEST()
2207 APFloat MZero = APFloat::getZero(APFloat::IEEEsingle, true); in TEST()
2208 APFloat QNaN = APFloat::getNaN(APFloat::IEEEsingle, false); in TEST()
2209 APFloat SNaN = APFloat::getSNaN(APFloat::IEEEsingle, false); in TEST()
2210 APFloat PNormalValue = APFloat(APFloat::IEEEsingle, "0x1p+0"); in TEST()
2211 APFloat MNormalValue = APFloat(APFloat::IEEEsingle, "-0x1p+0"); in TEST()
2212 APFloat PLargestValue = APFloat::getLargest(APFloat::IEEEsingle, false); in TEST()
2213 APFloat MLargestValue = APFloat::getLargest(APFloat::IEEEsingle, true); in TEST()
2214 APFloat PSmallestValue = APFloat::getSmallest(APFloat::IEEEsingle, false); in TEST()
2215 APFloat MSmallestValue = APFloat::getSmallest(APFloat::IEEEsingle, true); in TEST()
2217 APFloat::getSmallestNormalized(APFloat::IEEEsingle, false); in TEST()
2219 APFloat::getSmallestNormalized(APFloat::IEEEsingle, true); in TEST()
2477 APFloat result(APFloat::IEEEsingle, SpecialCaseTests[i].result); in TEST()
2493 APFloat PInf = APFloat::getInf(APFloat::IEEEsingle, false); in TEST()
2494 APFloat MInf = APFloat::getInf(APFloat::IEEEsingle, true); in TEST()
2495 APFloat PZero = APFloat::getZero(APFloat::IEEEsingle, false); in TEST()
2496 APFloat MZero = APFloat::getZero(APFloat::IEEEsingle, true); in TEST()
2497 APFloat QNaN = APFloat::getNaN(APFloat::IEEEsingle, false); in TEST()
2498 APFloat SNaN = APFloat::getSNaN(APFloat::IEEEsingle, false); in TEST()
2499 APFloat PNormalValue = APFloat(APFloat::IEEEsingle, "0x1p+0"); in TEST()
2500 APFloat MNormalValue = APFloat(APFloat::IEEEsingle, "-0x1p+0"); in TEST()
2501 APFloat PLargestValue = APFloat::getLargest(APFloat::IEEEsingle, false); in TEST()
2502 APFloat MLargestValue = APFloat::getLargest(APFloat::IEEEsingle, true); in TEST()
2503 APFloat PSmallestValue = APFloat::getSmallest(APFloat::IEEEsingle, false); in TEST()
2504 APFloat MSmallestValue = APFloat::getSmallest(APFloat::IEEEsingle, true); in TEST()
2506 APFloat::getSmallestNormalized(APFloat::IEEEsingle, false); in TEST()
2508 APFloat::getSmallestNormalized(APFloat::IEEEsingle, true); in TEST()
2766 APFloat result(APFloat::IEEEsingle, SpecialCaseTests[i].result); in TEST()
2776 APFloat One = APFloat(APFloat::IEEEsingle, "0x1p+0"); in TEST()
2777 APFloat Two = APFloat(APFloat::IEEEsingle, "0x2p+0"); in TEST()
2785 APFloat PInf = APFloat::getInf(APFloat::IEEEsingle, false); in TEST()
2786 APFloat MInf = APFloat::getInf(APFloat::IEEEsingle, true); in TEST()
2787 APFloat PZero = APFloat::getZero(APFloat::IEEEsingle, false); in TEST()
2788 APFloat MZero = APFloat::getZero(APFloat::IEEEsingle, true); in TEST()
2789 APFloat PQNaN = APFloat::getNaN(APFloat::IEEEsingle, false); in TEST()
2790 APFloat MQNaN = APFloat::getNaN(APFloat::IEEEsingle, true); in TEST()
2791 APFloat PSNaN = APFloat::getSNaN(APFloat::IEEEsingle, false); in TEST()
2792 APFloat MSNaN = APFloat::getSNaN(APFloat::IEEEsingle, true); in TEST()
2793 APFloat PNormalValue = APFloat(APFloat::IEEEsingle, "0x1p+0"); in TEST()
2794 APFloat MNormalValue = APFloat(APFloat::IEEEsingle, "-0x1p+0"); in TEST()
2795 APFloat PLargestValue = APFloat::getLargest(APFloat::IEEEsingle, false); in TEST()
2796 APFloat MLargestValue = APFloat::getLargest(APFloat::IEEEsingle, true); in TEST()
2797 APFloat PSmallestValue = APFloat::getSmallest(APFloat::IEEEsingle, false); in TEST()
2798 APFloat MSmallestValue = APFloat::getSmallest(APFloat::IEEEsingle, true); in TEST()
2800 APFloat::getSmallestNormalized(APFloat::IEEEsingle, false); in TEST()
2802 APFloat::getSmallestNormalized(APFloat::IEEEsingle, 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()
2869 APFloat(APFloat::IEEEsingle, "0x1p+0") in TEST()
2870 .bitwiseIsEqual(scalbn(APFloat(APFloat::IEEEsingle, "0x1p+0"), 0, RM))); in TEST()
2872 APFloat(APFloat::IEEEsingle, "0x1p+42") in TEST()
2873 .bitwiseIsEqual(scalbn(APFloat(APFloat::IEEEsingle, "0x1p+0"), 42, RM))); in TEST()
2875 APFloat(APFloat::IEEEsingle, "0x1p-42") in TEST()
2876 .bitwiseIsEqual(scalbn(APFloat(APFloat::IEEEsingle, "0x1p+0"), -42, RM))); in TEST()
2878 APFloat PInf = APFloat::getInf(APFloat::IEEEsingle, false); in TEST()
2879 APFloat MInf = APFloat::getInf(APFloat::IEEEsingle, true); in TEST()
2880 APFloat PZero = APFloat::getZero(APFloat::IEEEsingle, false); in TEST()
2881 APFloat MZero = APFloat::getZero(APFloat::IEEEsingle, true); in TEST()
2882 APFloat QPNaN = APFloat::getNaN(APFloat::IEEEsingle, false); in TEST()
2883 APFloat QMNaN = APFloat::getNaN(APFloat::IEEEsingle, true); in TEST()
2884 APFloat SNaN = APFloat::getSNaN(APFloat::IEEEsingle, false); in TEST()
2910 scalbn(APFloat(APFloat::IEEEsingle, "0x1p+0"), 128, RM))); in TEST()
2912 scalbn(APFloat(APFloat::IEEEsingle, "-0x1p+0"), 128, RM))); in TEST()
2914 scalbn(APFloat(APFloat::IEEEsingle, "0x1p+127"), 1, RM))); in TEST()
2916 scalbn(APFloat(APFloat::IEEEsingle, "0x1p-127"), -127, RM))); in TEST()
2918 scalbn(APFloat(APFloat::IEEEsingle, "-0x1p-127"), -127, RM))); in TEST()
2919 EXPECT_TRUE(APFloat(APFloat::IEEEsingle, "-0x1p-149").bitwiseIsEqual( in TEST()
2920 scalbn(APFloat(APFloat::IEEEsingle, "-0x1p-127"), -22, RM))); in TEST()
2922 scalbn(APFloat(APFloat::IEEEsingle, "0x1p-126"), -24, RM))); in TEST()