aboutsummaryrefslogtreecommitdiff
path: root/math
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2010-10-11 09:27:05 -0400
committerUlrich Drepper <drepper@gmail.com>2010-10-11 09:27:05 -0400
commit9ff8d36f27aaf390fd074976cd2e867ba41f2588 (patch)
tree694d6d7482b202d35b90d9e958d322f4c4a1b83b /math
parentc579b202990c48710e133b58b44ada32d0a7d458 (diff)
downloadglibc-9ff8d36f27aaf390fd074976cd2e867ba41f2588.zip
glibc-9ff8d36f27aaf390fd074976cd2e867ba41f2588.tar.gz
glibc-9ff8d36f27aaf390fd074976cd2e867ba41f2588.tar.bz2
Correct implementation of fmaf.
Diffstat (limited to 'math')
-rw-r--r--math/feupdateenv.c3
-rw-r--r--math/ftestexcept.c3
-rw-r--r--math/libm-test.inc4
3 files changed, 8 insertions, 2 deletions
diff --git a/math/feupdateenv.c b/math/feupdateenv.c
index 3e6aed4..dd7a1af 100644
--- a/math/feupdateenv.c
+++ b/math/feupdateenv.c
@@ -1,5 +1,5 @@
/* Install given floating-point environment and raise exceptions.
- Copyright (C) 1997, 1999, 2000 Free Software Foundation, Inc.
+ Copyright (C) 1997, 1999, 2000, 2010 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1997.
@@ -31,6 +31,7 @@ __feupdateenv (const fenv_t *envp)
strong_alias (__feupdateenv, __old_feupdateenv)
compat_symbol (libm, __old_feupdateenv, feupdateenv, GLIBC_2_1);
#endif
+libm_hidden_ver (__feupdateenv, feupdateenv)
versioned_symbol (libm, __feupdateenv, feupdateenv, GLIBC_2_2);
stub_warning (feupdateenv)
diff --git a/math/ftestexcept.c b/math/ftestexcept.c
index 4be3fb7..951d134 100644
--- a/math/ftestexcept.c
+++ b/math/ftestexcept.c
@@ -1,5 +1,5 @@
/* Test exception in current environment.
- Copyright (C) 1997 Free Software Foundation, Inc.
+ Copyright (C) 1997, 2010 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1997.
@@ -25,5 +25,6 @@ fetestexcept (int excepts)
{
return 0;
}
+libm_hidden_def (fetestexcept)
stub_warning (fetestexcept)
#include <stub-tag.h>
diff --git a/math/libm-test.inc b/math/libm-test.inc
index 6650b88..2d48f71 100644
--- a/math/libm-test.inc
+++ b/math/libm-test.inc
@@ -2789,6 +2789,10 @@ fma_test (void)
TEST_fff_f (fma, minus_infty, minus_infty, minus_infty, nan_value, INVALID_EXCEPTION);
TEST_fff_f (fma, 1.25L, 0.75L, 0.0625L, 1.0L);
+#ifdef TEST_FLOAT
+ TEST_fff_f (fma, 0x1.7ff8p+13, 0x1.000002p+0, 0x1.ffffp-24, 0x1.7ff802p+13);
+ TEST_fff_f (fma, 0x1.fffp+0, 0x1.00001p+0, -0x1.fffp+0, 0x1.fffp-20);
+#endif
END (fma);
}