diff options
author | Adhemerval Zanella <azanella@linux.vnet.ibm.com> | 2014-01-08 05:10:41 -0600 |
---|---|---|
committer | Adhemerval Zanella <azanella@linux.vnet.ibm.com> | 2014-01-08 08:14:48 -0600 |
commit | 38f3458175ecf7c3588bd5b6e465f4d9205fbe1c (patch) | |
tree | 1c5442a50f36e93adb52c57c7e02977699d60f55 /sysdeps/ieee754 | |
parent | 3ff6304ee7294951adef3255457ca28ebaf0d7d1 (diff) | |
download | glibc-38f3458175ecf7c3588bd5b6e465f4d9205fbe1c.zip glibc-38f3458175ecf7c3588bd5b6e465f4d9205fbe1c.tar.gz glibc-38f3458175ecf7c3588bd5b6e465f4d9205fbe1c.tar.bz2 |
PowerPC: remove wrong truncl implementation for PowerPC64
The truncl assembly implementation (sysdeps/powerpc/powerpc64/fpu/s_truncl.S)
returns wrong results for some inputs where first double is a exact integer
and the precision is determined by second long double.
Checking on implementation comments and history, I am very confident the
assembly implementation was based on a version before commit
5c68d401698a58cf7da150d9cce769fa6679ba5f that fixes BZ#2423 (Errors in
long double (ldbl-128ibm) rounding functions in glibc-2.4).
By just removing the implementation and make the build select
sysdeps/ieee754/ldbl-128ibm/s_truncl.c instead it fixes tgammal
issues regarding wrong result sign.
Diffstat (limited to 'sysdeps/ieee754')
-rw-r--r-- | sysdeps/ieee754/ldbl-128ibm/s_truncl.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/sysdeps/ieee754/ldbl-128ibm/s_truncl.c b/sysdeps/ieee754/ldbl-128ibm/s_truncl.c index 490ad26..aca3f3e 100644 --- a/sysdeps/ieee754/ldbl-128ibm/s_truncl.c +++ b/sysdeps/ieee754/ldbl-128ibm/s_truncl.c @@ -17,9 +17,6 @@ License along with the GNU C Library; if not, see <http://www.gnu.org/licenses/>. */ -/* This has been coded in assembler because GCC makes such a mess of it - when it's coded in C. */ - #include <math.h> #include <math_ldbl_opt.h> #include <float.h> |