about summary refs log tree commit diff
path: root/sysdeps/ieee754/dbl-64/s_fmaf.c
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2010-10-13 22:27:03 -0400
committerUlrich Drepper <drepper@gmail.com>2010-10-13 22:27:03 -0400
commit5e908464b9603e9cd95047d2edd00de5f78fedaf (patch)
tree1f526248f31bee031ce4c92d9b1b2e857d6b671b /sysdeps/ieee754/dbl-64/s_fmaf.c
parentf90681487d90a6eea8f1c60021bc8dd83313c59b (diff)
downloadglibc-5e908464b9603e9cd95047d2edd00de5f78fedaf.tar.gz
glibc-5e908464b9603e9cd95047d2edd00de5f78fedaf.tar.xz
glibc-5e908464b9603e9cd95047d2edd00de5f78fedaf.zip
Implement accurate fma.
Diffstat (limited to 'sysdeps/ieee754/dbl-64/s_fmaf.c')
-rw-r--r--sysdeps/ieee754/dbl-64/s_fmaf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdeps/ieee754/dbl-64/s_fmaf.c b/sysdeps/ieee754/dbl-64/s_fmaf.c
index 9721876601..cd16cd1dce 100644
--- a/sysdeps/ieee754/dbl-64/s_fmaf.c
+++ b/sysdeps/ieee754/dbl-64/s_fmaf.c
@@ -39,7 +39,7 @@ __fmaf (float x, float y, float z)
   fesetround (FE_TOWARDZERO);
   /* Perform addition with round to odd.  */
   u.d = temp + (double) z;
-  if ((u.ieee.mantissa1 & 1) == 0 && u.ieee.exponent != 0xff)
+  if ((u.ieee.mantissa1 & 1) == 0 && u.ieee.exponent != 0x7ff)
     u.ieee.mantissa1 |= fetestexcept (FE_INEXACT) != 0;
   feupdateenv (&env);
   /* And finally truncation with round to nearest.  */