Lines Matching refs:normalized_significand
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()
639 EXPECT_EQ(bits_set({}), normalized_significand({22}, -127)); in TEST()
640 EXPECT_EQ(bits_set({0}), normalized_significand({21, 22}, -127)); in TEST()