/external/deqp-deps/SPIRV-Tools/test/ |
D | hex_float_test.cpp | 691 float set_from_sign(bool negative, int32_t unbiased_exponent, in set_from_sign() function 701 EXPECT_EQ(1.f, set_from_sign(false, 0, 0, false)); in TEST() 705 set_from_sign(false, -149, 0, false)); in TEST() 707 set_from_sign(false, -149, 0, true)); in TEST() 708 EXPECT_EQ(0.f, set_from_sign(false, -150, 1, false)); in TEST() 710 set_from_sign(false, -150, 1, true)); in TEST() 712 EXPECT_EQ(ldexp(1.0f, -127), set_from_sign(false, -127, 0, false)); in TEST() 713 EXPECT_EQ(ldexp(1.0f, -128), set_from_sign(false, -128, 0, false)); in TEST() 715 set_from_sign(false, 0, bits_set({0, 1, 4}), false)); in TEST() 717 set_from_sign(false, -32, bits_set({0, 1, 4}), false)); in TEST() [all …]
|
/external/deqp-deps/glslang/gtests/ |
D | HexFloat.cpp | 646 float set_from_sign(bool negative, int32_t unbiased_exponent, in set_from_sign() function 657 EXPECT_EQ(1.f, set_from_sign(false, 0, 0, false)); in TEST() 660 EXPECT_EQ(static_cast<float>(ldexp(1.f, -149)), set_from_sign(false, -149, 0, false)); in TEST() 661 EXPECT_EQ(static_cast<float>(ldexp(1.f, -149)), set_from_sign(false, -149, 0, true)); in TEST() 662 EXPECT_EQ(0.f, set_from_sign(false, -150, 1, false)); in TEST() 663 EXPECT_EQ(static_cast<float>(ldexp(1.f, -149)), set_from_sign(false, -150, 1, true)); in TEST() 665 EXPECT_EQ(ldexp(1.0f, -127), set_from_sign(false, -127, 0, false)); in TEST() 666 EXPECT_EQ(ldexp(1.0f, -128), set_from_sign(false, -128, 0, false)); in TEST() 668 set_from_sign(false, 0, bits_set({0, 1, 4}), false)); in TEST() 670 set_from_sign(false, -32, bits_set({0, 1, 4}), false)); in TEST() [all …]
|
/external/swiftshader/third_party/SPIRV-Tools/test/ |
D | hex_float_test.cpp | 691 float set_from_sign(bool negative, int32_t unbiased_exponent, in set_from_sign() function 701 EXPECT_EQ(1.f, set_from_sign(false, 0, 0, false)); in TEST() 705 set_from_sign(false, -149, 0, false)); in TEST() 707 set_from_sign(false, -149, 0, true)); in TEST() 708 EXPECT_EQ(0.f, set_from_sign(false, -150, 1, false)); in TEST() 710 set_from_sign(false, -150, 1, true)); in TEST() 712 EXPECT_EQ(ldexp(1.0f, -127), set_from_sign(false, -127, 0, false)); in TEST() 713 EXPECT_EQ(ldexp(1.0f, -128), set_from_sign(false, -128, 0, false)); in TEST() 715 set_from_sign(false, 0, bits_set({0, 1, 4}), false)); in TEST() 717 set_from_sign(false, -32, bits_set({0, 1, 4}), false)); in TEST() [all …]
|