From 38f3458175ecf7c3588bd5b6e465f4d9205fbe1c Mon Sep 17 00:00:00 2001 From: Adhemerval Zanella Date: Wed, 8 Jan 2014 05:10:41 -0600 Subject: 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. --- sysdeps/ieee754/ldbl-128ibm/s_truncl.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'sysdeps/ieee754') diff --git a/sysdeps/ieee754/ldbl-128ibm/s_truncl.c b/sysdeps/ieee754/ldbl-128ibm/s_truncl.c index 490ad266d4..aca3f3efc2 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 . */ -/* This has been coded in assembler because GCC makes such a mess of it - when it's coded in C. */ - #include #include #include -- cgit 1.4.1