This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug math/15631] New: sqrt spurious inexact exceptions
- From: "jsm28 at gcc dot gnu.org" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Fri, 14 Jun 2013 20:41:58 +0000
- Subject: [Bug math/15631] New: sqrt spurious inexact exceptions
- Auto-submitted: auto-generated
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.