This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug math/19095] New: dbl-64 lrint incorrect for 64-bit long
- From: "jsm28 at gcc dot gnu.org" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Thu, 08 Oct 2015 20:46:36 +0000
- Subject: [Bug math/19095] New: dbl-64 lrint incorrect for 64-bit long
- Auto-submitted: auto-generated
https://sourceware.org/bugzilla/show_bug.cgi?id=19095
Bug ID: 19095
Summary: dbl-64 lrint incorrect for 64-bit long
Product: glibc
Version: 2.22
Status: NEW
Severity: normal
Priority: P2
Component: math
Assignee: unassigned at sourceware dot org
Reporter: jsm28 at gcc dot gnu.org
Target Milestone: ---
The dbl-64 implementation of lrint produces incorrect results for some
arguments with 64-bit long. E.g. for MIPS n64:
Failure: Test: lrint (0x7fffff8000000000p0)
Result:
is: 9223367638808264704
should be: 9223371487098961920
Failure: Test: lrint (0x7ffffffffffffc00p0)
Result:
is: 9223367643103230976
should be: 9223372036854774784
Failure: Test: lrint_downward (0x7fffff8000000000p0)
Result:
is: 9223367638808264704
should be: 9223371487098961920
Failure: Test: lrint_downward (0x7ffffffffffffc00p0)
Result:
is: 9223367643103230976
should be: 9223372036854774784
Failure: Test: lrint_towardzero (0x7fffff8000000000p0)
Result:
is: 9223367638808264704
should be: 9223371487098961920
Failure: Test: lrint_towardzero (0x7ffffffffffffc00p0)
Result:
is: 9223367643103230976
should be: 9223372036854774784
Failure: Test: lrint_upward (0x7fffff8000000000p0)
Result:
is: 9223367638808264704
should be: 9223371487098961920
Failure: Test: lrint_upward (0x7ffffffffffffc00p0)
Result:
is: 9223367643103230976
should be: 9223372036854774784
--
You are receiving this mail because:
You are on the CC list for the bug.