mirror of
https://sourceware.org/git/glibc.git
synced 2025-09-02 16:01:20 +03:00
BZ#13889: expl (709.75) wrongly overflows for ldbl-128ibm
The patch increase the high value to check if expl overflows. Current high mark value is not really correct, the algorithm accepts high values. It also adds a correct wrapper function to check for overflow and underflow.
This commit is contained in:
@@ -4564,6 +4564,9 @@ exp_test (void)
|
||||
TEST_f_f (exp, 0.75L, 2.11700001661267466854536981983709561L);
|
||||
TEST_f_f (exp, 50.0L, 5184705528587072464087.45332293348538L);
|
||||
TEST_f_f (exp, 88.72269439697265625L, 3.40233126623160774937554134772290447915e38L);
|
||||
#ifndef TEST_FLOAT
|
||||
TEST_f_f (exp, 709.75L, 1.739836873264160557698252711673830393864768e+308L);
|
||||
#endif
|
||||
#if defined TEST_LDOUBLE && __LDBL_MAX_EXP__ > 1024
|
||||
/* The result can only be represented in sane long double. */
|
||||
TEST_f_f (exp, 1000.0L, 0.197007111401704699388887935224332313e435L);
|
||||
|
Reference in New Issue
Block a user