mirror of
https://sourceware.org/git/glibc.git
synced 2025-10-20 03:52:29 +03:00
Fix exp10 errno setting on underflow (bug 6787).
This commit is contained in:
@@ -8134,10 +8134,12 @@ static const struct test_f_f_data exp10_test_data[] =
|
||||
TEST_f_f (exp10, 4932, 1.0e4932L),
|
||||
TEST_f_f (exp10, -4932, 1.0e-4932L, UNDERFLOW_EXCEPTION),
|
||||
#endif
|
||||
TEST_f_f (exp10, 1e5, plus_infty, OVERFLOW_EXCEPTION|ERRNO_ERANGE),
|
||||
TEST_f_f (exp10, -1e5, 0, UNDERFLOW_EXCEPTION|ERRNO_ERANGE),
|
||||
TEST_f_f (exp10, 1e6, plus_infty, OVERFLOW_EXCEPTION|ERRNO_ERANGE),
|
||||
TEST_f_f (exp10, -1e6, 0, UNDERFLOW_EXCEPTION),
|
||||
TEST_f_f (exp10, -1e6, 0, UNDERFLOW_EXCEPTION|ERRNO_ERANGE),
|
||||
TEST_f_f (exp10, max_value, plus_infty, OVERFLOW_EXCEPTION|ERRNO_ERANGE),
|
||||
TEST_f_f (exp10, -max_value, 0, UNDERFLOW_EXCEPTION),
|
||||
TEST_f_f (exp10, -max_value, 0, UNDERFLOW_EXCEPTION|ERRNO_ERANGE),
|
||||
TEST_f_f (exp10, 0.75L, 5.62341325190349080394951039776481231L),
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user