Lines Matching refs:set_from_sign
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()
672 set_from_sign(false, -128, bits_set({0, 1, 4}), false)); in TEST()
675 EXPECT_EQ(-1.f, set_from_sign(true, 0, 0, false)); in TEST()
676 EXPECT_EQ(-ldexp(1.0, -127), set_from_sign(true, -127, 0, false)); in TEST()
677 EXPECT_EQ(-ldexp(1.0, -128), set_from_sign(true, -128, 0, false)); in TEST()
679 set_from_sign(true, 0, bits_set({0, 1, 4}), false)); in TEST()
681 set_from_sign(true, -32, bits_set({0, 1, 4}), false)); in TEST()
683 set_from_sign(true, -128, bits_set({0, 1, 4}), false)); in TEST()