This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug math/5547] New: lrint gives wrong result for ia64 and alpha -mieee
- From: "bonzini at gnu dot org" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: 7 Jan 2008 10:38:20 -0000
- Subject: [Bug math/5547] New: lrint gives wrong result for ia64 and alpha -mieee
- Reply-to: sourceware-bugzilla at sourceware dot org
Reproducer:
#define _GNU_SOURCE 1
#include <math.h>
int main()
{
double d = 14988885582133630.0;
printf ("%.18g\n", d);
long int l = lrint (d);
printf ("%ld\n", l);
printf ("%ld\n", (long int) d);
}
Output on ia64
14988885582133630
14988881287166334
14988885582133630
On alpha a user of mine got the same error with -mieee, but I don't have a
machine to run the reproducer.
--
Summary: lrint gives wrong result for ia64 and alpha -mieee
Product: glibc
Version: 2.4
Status: NEW
Severity: normal
Priority: P2
Component: math
AssignedTo: aj at suse dot de
ReportedBy: bonzini at gnu dot org
CC: glibc-bugs at sources dot redhat dot com
GCC host triplet: {ia64,alpha}-unknown-linux-gnu
http://sourceware.org/bugzilla/show_bug.cgi?id=5547
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.