• Home
  • History
  • Annotate
  • Raw
  • Download

Lines Matching refs:half

35     EXPECT_EQ(2UL, sizeof(half));  in TEST_F()
38 EXPECT_EQ(0x0000, half( 0.0f).getBits()); in TEST_F()
39 EXPECT_EQ(0x8000, half(-0.0f).getBits()); in TEST_F()
42 EXPECT_EQ(0x7e00, half(NAN).getBits()); in TEST_F()
45 EXPECT_EQ(0x7C00, half( std::numeric_limits<float>::infinity()).getBits()); in TEST_F()
46 EXPECT_EQ(0xFC00, half(-std::numeric_limits<float>::infinity()).getBits()); in TEST_F()
49 EXPECT_EQ(0x3C01, half(1.0009765625).getBits()); in TEST_F()
50 EXPECT_EQ(0xC000, half(-2).getBits()); in TEST_F()
51 EXPECT_EQ(0x0400, half(6.10352e-5).getBits()); in TEST_F()
52 EXPECT_EQ(0x7BFF, half(65504).getBits()); in TEST_F()
53 EXPECT_EQ(0x3555, half(1.0f/3).getBits()); in TEST_F()
56 EXPECT_EQ(0x7C00, std::numeric_limits<half>::infinity().getBits()); in TEST_F()
57 EXPECT_EQ(0x0400, std::numeric_limits<half>::min().getBits()); in TEST_F()
58 EXPECT_EQ(0x7BFF, std::numeric_limits<half>::max().getBits()); in TEST_F()
59 EXPECT_EQ(0xFBFF, std::numeric_limits<half>::lowest().getBits()); in TEST_F()
62 EXPECT_EQ(0x0000, half( 6.09756e-5).getBits()); // if handled, should be: 0x03FF in TEST_F()
63 EXPECT_EQ(0x0000, half( 5.96046e-8).getBits()); // if handled, should be: 0x0001 in TEST_F()
64 EXPECT_EQ(0x8000, half(-6.09756e-5).getBits()); // if handled, should be: 0x83FF in TEST_F()
65 EXPECT_EQ(0x8000, half(-5.96046e-8).getBits()); // if handled, should be: 0x8001 in TEST_F()
69 half h = i; in TEST_F()
75 half one = 1.0_hf; in TEST_F()
76 half pi = 3.1415926_hf; in TEST_F()
77 half minusTwo = -2.0_hf; in TEST_F()
79 EXPECT_EQ(half(1.0f), one); in TEST_F()
80 EXPECT_EQ(half(3.1415926), pi); in TEST_F()
81 EXPECT_EQ(half(-2.0f), minusTwo); in TEST_F()