diff options
author | joseph <joseph@7b3dc134-2b1b-0410-93df-9e9f96275f8d> | 2008-02-11 20:24:43 +0000 |
---|---|---|
committer | joseph <joseph@7b3dc134-2b1b-0410-93df-9e9f96275f8d> | 2008-02-11 20:24:43 +0000 |
commit | 6f99929dcb560f2b885ecb1f68a690d5ee5b4182 (patch) | |
tree | 776dd1f88d59c0f24514a4ac23675771e38175c0 | |
parent | 377e904744fe30e5f1a5ad161b3e49774507bc5b (diff) | |
download | eglibc2-6f99929dcb560f2b885ecb1f68a690d5ee5b4182.tar.gz |
[BZ #3406]
* sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Correct value.
* math/libm-test.inc (exp_test): Test 88.72269439697265625.
git-svn-id: svn://svn.eglibc.org/branches/eglibc-2_5@5135 7b3dc134-2b1b-0410-93df-9e9f96275f8d
-rw-r--r-- | libc/ChangeLog.eglibc | 6 | ||||
-rw-r--r-- | libc/math/libm-test.inc | 1 | ||||
-rw-r--r-- | libc/sysdeps/ieee754/flt-32/w_expf.c | 2 |
3 files changed, 8 insertions, 1 deletions
diff --git a/libc/ChangeLog.eglibc b/libc/ChangeLog.eglibc index 6e63680d2..27caa17cd 100644 --- a/libc/ChangeLog.eglibc +++ b/libc/ChangeLog.eglibc @@ -1,3 +1,9 @@ +2008-02-11 Joseph Myers <joseph@codesourcery.com> + + [BZ #3406] + * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Correct value. + * math/libm-test.inc (exp_test): Test 88.72269439697265625. + 2008-01-07 Joseph Myers <joseph@codesourcery.com> Merge from FSF glibc-2_5-branch: diff --git a/libc/math/libm-test.inc b/libc/math/libm-test.inc index 23ee6beaa..91c8d2099 100644 --- a/libc/math/libm-test.inc +++ b/libc/math/libm-test.inc @@ -2497,6 +2497,7 @@ exp_test (void) TEST_f_f (exp, 3, M_E3l); TEST_f_f (exp, 0.75L, 2.11700001661267466854536981983709561L); TEST_f_f (exp, 50.0L, 5184705528587072464087.45332293348538L); + TEST_f_f (exp, 88.72269439697265625L, 3.40233126623160774937554134772290447915e38L); #ifdef TEST_LDOUBLE /* The result can only be represented in long double. */ TEST_f_f (exp, 1000.0L, 0.197007111401704699388887935224332313e435L); diff --git a/libc/sysdeps/ieee754/flt-32/w_expf.c b/libc/sysdeps/ieee754/flt-32/w_expf.c index ad38fac0f..4ba21c7c4 100644 --- a/libc/sysdeps/ieee754/flt-32/w_expf.c +++ b/libc/sysdeps/ieee754/flt-32/w_expf.c @@ -29,7 +29,7 @@ static const float #else static float #endif -o_threshold= 8.8721679688e+01, /* 0x42b17180 */ +o_threshold= 8.8722831726e+01, /* 0x42b17217 */ u_threshold= -1.0397208405e+02; /* 0xc2cff1b5 */ #ifdef __STDC__ |