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/19095] New: dbl-64 lrint incorrect for 64-bit long


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.


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