Home
last modified time | relevance | path

Searched refs:set_from_sign (Results 1 – 3 of 3) sorted by relevance

/external/deqp-deps/SPIRV-Tools/test/
Dhex_float_test.cpp691 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/
DHexFloat.cpp646 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/
Dhex_float_test.cpp691 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 …]