Lines Matching refs:VERIFY_IS_EQUAL
26 VERIFY_IS_EQUAL(half(1.0f).x, 0x3c00); in test_conversion()
27 VERIFY_IS_EQUAL(half(0.5f).x, 0x3800); in test_conversion()
28 VERIFY_IS_EQUAL(half(0.33333f).x, 0x3555); in test_conversion()
29 VERIFY_IS_EQUAL(half(0.0f).x, 0x0000); in test_conversion()
30 VERIFY_IS_EQUAL(half(-0.0f).x, 0x8000); in test_conversion()
31 VERIFY_IS_EQUAL(half(65504.0f).x, 0x7bff); in test_conversion()
32 VERIFY_IS_EQUAL(half(65536.0f).x, 0x7c00); // Becomes infinity. in test_conversion()
35 VERIFY_IS_EQUAL(half(-5.96046e-08f).x, 0x8001); in test_conversion()
36 VERIFY_IS_EQUAL(half(5.96046e-08f).x, 0x0001); in test_conversion()
37 VERIFY_IS_EQUAL(half(1.19209e-07f).x, 0x0002); in test_conversion()
43 VERIFY_IS_EQUAL(half(0.5f * (val1 + val2)).x, 0x3c00); in test_conversion()
44 VERIFY_IS_EQUAL(half(0.5f * (val2 + val3)).x, 0x3c02); in test_conversion()
47 VERIFY_IS_EQUAL(half(-1).x, 0xbc00); in test_conversion()
48 VERIFY_IS_EQUAL(half(0).x, 0x0000); in test_conversion()
49 VERIFY_IS_EQUAL(half(1).x, 0x3c00); in test_conversion()
50 VERIFY_IS_EQUAL(half(2).x, 0x4000); in test_conversion()
51 VERIFY_IS_EQUAL(half(3).x, 0x4200); in test_conversion()
54 VERIFY_IS_EQUAL(half(false).x, 0x0000); in test_conversion()
55 VERIFY_IS_EQUAL(half(true).x, 0x3c00); in test_conversion()
58 VERIFY_IS_EQUAL(float(half(__half(0x0000))), 0.0f); in test_conversion()
59 VERIFY_IS_EQUAL(float(half(__half(0x3c00))), 1.0f); in test_conversion()
110 …VERIFY_IS_EQUAL( std::numeric_limits<half>::infinity().x, half(std::numeric_limits<float>::infinit… in test_numtraits()
111 …VERIFY_IS_EQUAL( std::numeric_limits<half>::quiet_NaN().x, half(std::numeric_limits<float>::quiet_… in test_numtraits()
112 …VERIFY_IS_EQUAL( std::numeric_limits<half>::signaling_NaN().x, half(std::numeric_limits<float>::si… in test_numtraits()
116 VERIFY_IS_EQUAL( (std::numeric_limits<half>::denorm_min)()/half(2), half(0.f) ); in test_numtraits()
121 VERIFY_IS_EQUAL(float(half(2) + half(2)), 4); in test_arithmetic()
122 VERIFY_IS_EQUAL(float(half(2) + half(-2)), 0); in test_arithmetic()
124 VERIFY_IS_EQUAL(float(half(2.0f) * half(-5.5f)), -11.0f); in test_arithmetic()
126 VERIFY_IS_EQUAL(float(-half(4096.0f)), -4096.0f); in test_arithmetic()
127 VERIFY_IS_EQUAL(float(-half(-4096.0f)), 4096.0f); in test_arithmetic()
170 VERIFY_IS_EQUAL(float(numext::abs(half(3.5f))), 3.5f); in test_basic_functions()
171 VERIFY_IS_EQUAL(float(abs(half(3.5f))), 3.5f); in test_basic_functions()
172 VERIFY_IS_EQUAL(float(numext::abs(half(-3.5f))), 3.5f); in test_basic_functions()
173 VERIFY_IS_EQUAL(float(abs(half(-3.5f))), 3.5f); in test_basic_functions()
175 VERIFY_IS_EQUAL(float(numext::floor(half(3.5f))), 3.0f); in test_basic_functions()
176 VERIFY_IS_EQUAL(float(floor(half(3.5f))), 3.0f); in test_basic_functions()
177 VERIFY_IS_EQUAL(float(numext::floor(half(-3.5f))), -4.0f); in test_basic_functions()
178 VERIFY_IS_EQUAL(float(floor(half(-3.5f))), -4.0f); in test_basic_functions()
180 VERIFY_IS_EQUAL(float(numext::ceil(half(3.5f))), 4.0f); in test_basic_functions()
181 VERIFY_IS_EQUAL(float(ceil(half(3.5f))), 4.0f); in test_basic_functions()
182 VERIFY_IS_EQUAL(float(numext::ceil(half(-3.5f))), -3.0f); in test_basic_functions()
183 VERIFY_IS_EQUAL(float(ceil(half(-3.5f))), -3.0f); in test_basic_functions()
195 VERIFY_IS_EQUAL(float(numext::exp(half(0.0f))), 1.0f); in test_basic_functions()
196 VERIFY_IS_EQUAL(float(exp(half(0.0f))), 1.0f); in test_basic_functions()
200 VERIFY_IS_EQUAL(float(numext::log(half(1.0f))), 0.0f); in test_basic_functions()
201 VERIFY_IS_EQUAL(float(log(half(1.0f))), 0.0f); in test_basic_functions()
205 VERIFY_IS_EQUAL(float(numext::log1p(half(0.0f))), 0.0f); in test_basic_functions()
206 VERIFY_IS_EQUAL(float(log1p(half(0.0f))), 0.0f); in test_basic_functions()
247 VERIFY_IS_EQUAL( a1.minCoeff(), half(-10.) ); in test_array()
249 VERIFY_IS_EQUAL( a1.maxCoeff(), half(10.) ); in test_array()