This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug math/2466] New: Errors in long double (ldbl-128ibm) llrounding functions in glibc-2.4
- From: "sjmunroe at us dot ibm dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: 16 Mar 2006 18:40:52 -0000
- Subject: [Bug math/2466] New: Errors in long double (ldbl-128ibm) llrounding functions in glibc-2.4
- Reply-to: sourceware-bugzilla at sourceware dot org
The implementations of the (IBM double double format) long double
(./ldbld-128ibm/) for llrintl and llroundl, round incorrectly
when the integer portion is contained in th ehigh double, but the fractional
postion is contained in the low double. There are also problems where the input
value approaches __LONG_LONG_MAX__.
Also the IEEE 1003.1 spec states "These functions shall round their argument to
the nearest integer value, rounding according to the current rounding
direction." So I added tests to libm-test.inc to cover llrint in four rounding
modes (FE_TONEAREST, FE_TOWARDZERO, FE_UPWARD, FE_DOWNWARD) in addition to the
default rounding.
--
Summary: Errors in long double (ldbl-128ibm) llrounding functions
in glibc-2.4
Product: glibc
Version: 2.4
Status: NEW
Severity: normal
Priority: P2
Component: math
AssignedTo: aj at suse dot de
ReportedBy: sjmunroe at us dot ibm dot com
CC: glibc-bugs at sources dot redhat dot com
GCC build triplet: powerpc-gnu-linux
GCC host triplet: powerpc-gnu-linux
GCC target triplet: powerpc-gnu-linux
http://sourceware.org/bugzilla/show_bug.cgi?id=2466
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.