This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug math/16414] IBM long double truncl assembly implementation showing wrong results
- From: "azanella at linux dot vnet.ibm.com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Wed, 08 Jan 2014 12:04:02 +0000
- Subject: [Bug math/16414] IBM long double truncl assembly implementation showing wrong results
- Auto-submitted: auto-generated
- References: <bug-16414-131 at http dot sourceware dot org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=16414
Adhemerval Zanella Netto <azanella at linux dot vnet.ibm.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED
--- Comment #1 from Adhemerval Zanella Netto <azanella at linux dot vnet.ibm.com> ---
While seeking why some tgammal results shows wrong signal on PPC64, I found
out that the assembly implementation truncl
(sysdeps/powerpc/powerpc64/fpu/s_truncl.S)
for is in fact returning wrong results for some inputs. More specifically,
for number where the 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), since
the implementation indeed does not handle some inputs correctly.
A possible solutions is just remove the implementation and make the build
select
sysdeps/ieee754/ldbl-128ibm/s_truncl.c instead (which contains all the
appropriated fixes).
(Hit enter button before finishing editing, this comments is the bug
description).
--
You are receiving this mail because:
You are on the CC list for the bug.