diff options
author | Richard Henderson <rth@twiddle.net> | 2012-06-15 12:17:48 -0700 |
---|---|---|
committer | Richard Henderson <rth@twiddle.net> | 2012-06-15 12:17:48 -0700 |
commit | 7fd8e5a4e43032533a724efa1a8e9488bcbcf040 (patch) | |
tree | 1b8fe1524010615b5a442a7def7de617aad11570 /sysdeps | |
parent | f56ed78d4ad3fa029df5db1110aee06f1e26f199 (diff) | |
download | glibc-7fd8e5a4e43032533a724efa1a8e9488bcbcf040.tar.gz glibc-7fd8e5a4e43032533a724efa1a8e9488bcbcf040.tar.xz glibc-7fd8e5a4e43032533a724efa1a8e9488bcbcf040.zip |
alpha: Always handle inexact in rint implementations
Diffstat (limited to 'sysdeps')
-rw-r--r-- | sysdeps/alpha/fpu/s_rint.c | 9 | ||||
-rw-r--r-- | sysdeps/alpha/fpu/s_rintf.c | 6 |
2 files changed, 3 insertions, 12 deletions
diff --git a/sysdeps/alpha/fpu/s_rint.c b/sysdeps/alpha/fpu/s_rint.c index b58ef81edf..6ddcc13bf2 100644 --- a/sysdeps/alpha/fpu/s_rint.c +++ b/sysdeps/alpha/fpu/s_rint.c @@ -1,4 +1,4 @@ -/* Copyright (C) 2000, 2006, 2007 Free Software Foundation, Inc. +/* Copyright (C) 2000-2012 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Richard Henderson. @@ -26,12 +26,7 @@ __rint (double x) if (isless (fabs (x), 9007199254740992.0)) /* 1 << DBL_MANT_DIG */ { double tmp1, new_x; - __asm ( -#ifdef _IEEE_FP_INEXACT - "cvttq/svid %2,%1\n\t" -#else - "cvttq/svd %2,%1\n\t" -#endif + __asm ("cvttq/svid %2,%1\n\t" "cvtqt/d %1,%0\n\t" : "=f"(new_x), "=&f"(tmp1) : "f"(x)); diff --git a/sysdeps/alpha/fpu/s_rintf.c b/sysdeps/alpha/fpu/s_rintf.c index b17bf8c364..226e77e9bf 100644 --- a/sysdeps/alpha/fpu/s_rintf.c +++ b/sysdeps/alpha/fpu/s_rintf.c @@ -1,4 +1,4 @@ -/* Copyright (C) 2000, 2007 Free Software Foundation, Inc. +/* Copyright (C) 2000-2012 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Richard Henderson. @@ -32,11 +32,7 @@ __rintf (float x) float tmp1, tmp2, new_x; __asm ("cvtst/s %3,%2\n\t" -#ifdef _IEEE_FP_INEXACT "cvttq/svid %2,%1\n\t" -#else - "cvttq/svd %2,%1\n\t" -#endif "cvtqt/d %1,%0\n\t" : "=f"(new_x), "=&f"(tmp1), "=&f"(tmp2) : "f"(x)); |