public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug math/2466] New: Errors in long double (ldbl-128ibm) llrounding functions in glibc-2.4
@ 2006-03-16 18:40 sjmunroe at us dot ibm dot com
  2006-03-16 18:47 ` [Bug math/2466] " sjmunroe at us dot ibm dot com
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: sjmunroe at us dot ibm dot com @ 2006-03-16 18:40 UTC (permalink / raw)
  To: glibc-bugs

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.


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2006-05-11 13:56 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-03-16 18:40 [Bug math/2466] New: Errors in long double (ldbl-128ibm) llrounding functions in glibc-2.4 sjmunroe at us dot ibm dot com
2006-03-16 18:47 ` [Bug math/2466] " sjmunroe at us dot ibm dot com
2006-03-16 18:52 ` sjmunroe at us dot ibm dot com
2006-03-16 18:55 ` sjmunroe at us dot ibm dot com
2006-03-16 23:17 ` cvs-commit at gcc dot gnu dot org
2006-04-23 17:47 ` drepper at redhat dot com
2006-05-11 13:56 ` sjmunroe at us dot ibm dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).