This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug math/5547] New: lrint gives wrong result for ia64 and alpha -mieee


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]