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/15631] New: sqrt spurious inexact exceptions


http://sourceware.org/bugzilla/show_bug.cgi?id=15631

            Bug ID: 15631
           Summary: sqrt spurious inexact exceptions
           Product: glibc
           Version: 2.17
            Status: NEW
          Severity: normal
          Priority: P2
         Component: math
          Assignee: unassigned at sourceware dot org
          Reporter: jsm28 at gcc dot gnu.org

The dbl-64 implementation of sqrt raises spurious "inexact" exceptions; as a
fully-defined IEEE 754 operation, sqrt should raise "inexact" if and only if
the result actually is inexact.  On MIPS64 (n32 ABI) I see:

Failure: sqrt (2209): Exception "Inexact" set
Failure: sqrt (4): Exception "Inexact" set
Failure: sqrt (0.25): Exception "Inexact" set
Failure: sqrt (6642.25): Exception "Inexact" set
Failure: sqrt (15190.5625): Exception "Inexact" set

(On many platforms, hardware sqrt instructions are used and so this issue does
not appear.)

-- 
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]