Searched refs:normalized_significand (Results 1 – 3 of 3) sorted by relevance
/external/deqp-deps/SPIRV-Tools/test/ |
D | hex_float_test.cpp | 633 uint32_t normalized_significand(const std::vector<uint32_t>& fractions, in normalized_significand() function 666 EXPECT_EQ(bits_set({}), normalized_significand({0}, 0)); in TEST() 667 EXPECT_EQ(bits_set({0}), normalized_significand({0, 1}, 0)); in TEST() 668 EXPECT_EQ(bits_set({0, 1}), normalized_significand({0, 1, 2}, 0)); in TEST() 669 EXPECT_EQ(bits_set({1}), normalized_significand({0, 2}, 0)); in TEST() 670 EXPECT_EQ(bits_set({1}), normalized_significand({0, 2}, 32)); in TEST() 671 EXPECT_EQ(bits_set({1}), normalized_significand({0, 2}, 126)); in TEST() 677 normalized_significand({0}, static_cast<uint32_t>(-127))); in TEST() 679 normalized_significand({0, 4}, static_cast<uint32_t>(-128))); in TEST() 681 normalized_significand({0, 4}, static_cast<uint32_t>(-127))); in TEST() [all …]
|
/external/deqp-deps/glslang/gtests/ |
D | HexFloat.cpp | 594 uint32_t normalized_significand(const std::vector<uint32_t>& fractions, uint32_t exp) { in normalized_significand() function 626 EXPECT_EQ(bits_set({}), normalized_significand({0}, 0)); in TEST() 627 EXPECT_EQ(bits_set({0}), normalized_significand({0, 1}, 0)); in TEST() 628 EXPECT_EQ(bits_set({0, 1}), normalized_significand({0, 1, 2}, 0)); in TEST() 629 EXPECT_EQ(bits_set({1}), normalized_significand({0, 2}, 0)); in TEST() 630 EXPECT_EQ(bits_set({1}), normalized_significand({0, 2}, 32)); in TEST() 631 EXPECT_EQ(bits_set({1}), normalized_significand({0, 2}, 126)); in TEST() 636 EXPECT_EQ(bits_set({}), normalized_significand({0}, -127)); in TEST() 637 EXPECT_EQ(bits_set({3}), normalized_significand({0, 4}, -128)); in TEST() 638 EXPECT_EQ(bits_set({3}), normalized_significand({0, 4}, -127)); in TEST() [all …]
|
/external/swiftshader/third_party/SPIRV-Tools/test/ |
D | hex_float_test.cpp | 633 uint32_t normalized_significand(const std::vector<uint32_t>& fractions, in normalized_significand() function 666 EXPECT_EQ(bits_set({}), normalized_significand({0}, 0)); in TEST() 667 EXPECT_EQ(bits_set({0}), normalized_significand({0, 1}, 0)); in TEST() 668 EXPECT_EQ(bits_set({0, 1}), normalized_significand({0, 1, 2}, 0)); in TEST() 669 EXPECT_EQ(bits_set({1}), normalized_significand({0, 2}, 0)); in TEST() 670 EXPECT_EQ(bits_set({1}), normalized_significand({0, 2}, 32)); in TEST() 671 EXPECT_EQ(bits_set({1}), normalized_significand({0, 2}, 126)); in TEST() 677 normalized_significand({0}, static_cast<uint32_t>(-127))); in TEST() 679 normalized_significand({0, 4}, static_cast<uint32_t>(-128))); in TEST() 681 normalized_significand({0, 4}, static_cast<uint32_t>(-127))); in TEST() [all …]
|