From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23973 invoked by alias); 16 Mar 2006 18:40:54 -0000 Received: (qmail 23960 invoked by uid 48); 16 Mar 2006 18:40:52 -0000 Date: Thu, 16 Mar 2006 18:40:00 -0000 From: "sjmunroe at us dot ibm dot com" To: glibc-bugs@sources.redhat.com Message-ID: <20060316184051.2466.sjmunroe@us.ibm.com> Reply-To: sourceware-bugzilla@sourceware.org Subject: [Bug math/2466] New: Errors in long double (ldbl-128ibm) llrounding functions in glibc-2.4 X-Bugzilla-Reason: CC Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Post: List-Help: , Sender: glibc-bugs-owner@sourceware.org X-SW-Source: 2006-03/txt/msg00094.txt.bz2 List-Id: 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.