aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2008-05-11 17:49:25 +0000
committerUlrich Drepper <drepper@redhat.com>2008-05-11 17:49:25 +0000
commita7eb802f1147cc2237be3a410b3c658f59178d72 (patch)
tree2e36334a0b8854c141cdd79fc69ab58b37108022
parent3d7eeebe4990e08cd0c9fb2a9cc1e07c27ee3b4c (diff)
downloadglibc-a7eb802f1147cc2237be3a410b3c658f59178d72.tar
glibc-a7eb802f1147cc2237be3a410b3c658f59178d72.tar.gz
glibc-a7eb802f1147cc2237be3a410b3c658f59178d72.tar.bz2
glibc-a7eb802f1147cc2237be3a410b3c658f59178d72.zip
[BZ #3406]
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.
-rw-r--r--ChangeLog6
-rw-r--r--math/libm-test.inc1
-rw-r--r--sysdeps/ieee754/flt-32/w_expf.c2
3 files changed, 8 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 66798adee9..fa59286292 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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-05-11 Ulrich Drepper <drepper@redhat.com>
* io/openat.c (__openat_2): Also pass fd to __openat.
diff --git a/math/libm-test.inc b/math/libm-test.inc
index b8a73ae1f6..267d6077e1 100644
--- a/math/libm-test.inc
+++ b/math/libm-test.inc
@@ -2510,6 +2510,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/sysdeps/ieee754/flt-32/w_expf.c b/sysdeps/ieee754/flt-32/w_expf.c
index ad38fac0f3..4ba21c7c42 100644
--- a/sysdeps/ieee754/flt-32/w_expf.c
+++ b/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__