Lines Matching refs:unbiased_exponent
577 int32_t unbiased_exponent(double f) { in unbiased_exponent() function
588 EXPECT_EQ(0, unbiased_exponent(ldexp(1.0f, 0))); in TEST()
589 EXPECT_EQ(-32, unbiased_exponent(ldexp(1.0f, -32))); in TEST()
590 EXPECT_EQ(42, unbiased_exponent(ldexp(1.0f, 42))); in TEST()
591 EXPECT_EQ(125, unbiased_exponent(ldexp(1.0f, 125))); in TEST()
597 EXPECT_EQ(-100, unbiased_exponent(ldexp(1.0f, -100))); in TEST()
598 EXPECT_EQ(-127, unbiased_exponent(ldexp(1.0f, -127))); // First denorm in TEST()
599 EXPECT_EQ(-128, unbiased_exponent(ldexp(1.0f, -128))); in TEST()
600 EXPECT_EQ(-129, unbiased_exponent(ldexp(1.0f, -129))); in TEST()
601 EXPECT_EQ(-140, unbiased_exponent(ldexp(1.0f, -140))); in TEST()
603 EXPECT_EQ(-126 - 23, unbiased_exponent(ldexp(1.0f, -126 - 23))); in TEST()
605 EXPECT_EQ(0, unbiased_exponent(ldexp(1.0f, -127 - 23))); in TEST()
691 float set_from_sign(bool negative, int32_t unbiased_exponent, in set_from_sign() argument
695 negative, unbiased_exponent, significand, round_denorm_up); in set_from_sign()