diff options
author | Aurelien Jarno <aurelien@aurel32.net> | 2012-06-01 19:01:17 +0000 |
---|---|---|
committer | Joseph Myers <joseph@codesourcery.com> | 2012-06-01 19:01:17 +0000 |
commit | efb734887e10cb5adb0e722012fd65df8d1f8ff5 (patch) | |
tree | 00e43dda8e6a89849f3566a9c806baf4838112f5 /sysdeps/ieee754/dbl-64 | |
parent | 29bcce7ce456a9fe098793784b97c7e2cd446aca (diff) | |
download | glibc-efb734887e10cb5adb0e722012fd65df8d1f8ff5.tar.gz glibc-efb734887e10cb5adb0e722012fd65df8d1f8ff5.tar.xz glibc-efb734887e10cb5adb0e722012fd65df8d1f8ff5.zip |
Add a barrier in the double fma implementation.
Diffstat (limited to 'sysdeps/ieee754/dbl-64')
-rw-r--r-- | sysdeps/ieee754/dbl-64/s_fma.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sysdeps/ieee754/dbl-64/s_fma.c b/sysdeps/ieee754/dbl-64/s_fma.c index ab20a801a4..ce3bd36fac 100644 --- a/sysdeps/ieee754/dbl-64/s_fma.c +++ b/sysdeps/ieee754/dbl-64/s_fma.c @@ -1,5 +1,5 @@ /* Compute x * y + z as ternary operation. - Copyright (C) 2010, 2011 Free Software Foundation, Inc. + Copyright (C) 2010-2012 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Jakub Jelinek <jakub@redhat.com>, 2010. @@ -158,6 +158,8 @@ __fma (double x, double y, double z) if ((u.ieee.mantissa1 & 1) == 0) u.ieee.mantissa1 |= libc_fetestexcept (FE_INEXACT) != 0; v.d = a1 + u.d; + /* Ensure the addition is not scheduled after fetestexcept call. */ + math_force_eval (v.d); } /* Reset rounding mode and test for inexact simultaneously. */ |