diff options
author | Jakub Jelinek <jakub@redhat.com> | 2010-10-13 22:27:03 -0400 |
---|---|---|
committer | Ulrich Drepper <drepper@gmail.com> | 2010-10-13 22:27:03 -0400 |
commit | 5e908464b9603e9cd95047d2edd00de5f78fedaf (patch) | |
tree | 1f526248f31bee031ce4c92d9b1b2e857d6b671b /sysdeps/ieee754/dbl-64/s_fmaf.c | |
parent | f90681487d90a6eea8f1c60021bc8dd83313c59b (diff) | |
download | glibc-5e908464b9603e9cd95047d2edd00de5f78fedaf.tar glibc-5e908464b9603e9cd95047d2edd00de5f78fedaf.tar.gz glibc-5e908464b9603e9cd95047d2edd00de5f78fedaf.tar.bz2 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.c | 2 |
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. */ |