public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug math/15631] New: sqrt spurious inexact exceptions
@ 2013-06-14 20:42 jsm28 at gcc dot gnu.org
  2013-06-15 20:00 ` [Bug math/15631] " jsm28 at gcc dot gnu.org
  2014-06-13 15:05 ` fweimer at redhat dot com
  0 siblings, 2 replies; 3+ messages in thread
From: jsm28 at gcc dot gnu.org @ 2013-06-14 20:42 UTC (permalink / raw)
  To: glibc-bugs

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.


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug math/15631] sqrt spurious inexact exceptions
  2013-06-14 20:42 [Bug math/15631] New: sqrt spurious inexact exceptions jsm28 at gcc dot gnu.org
@ 2013-06-15 20:00 ` jsm28 at gcc dot gnu.org
  2014-06-13 15:05 ` fweimer at redhat dot com
  1 sibling, 0 replies; 3+ messages in thread
From: jsm28 at gcc dot gnu.org @ 2013-06-15 20:00 UTC (permalink / raw)
  To: glibc-bugs

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

Joseph Myers <jsm28 at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #1 from Joseph Myers <jsm28 at gcc dot gnu.org> ---
Fixed for 2.18 by:

commit 3711a167f6b5203b4414db7853f3c57f1260e1bf
Author: Joseph Myers <joseph@codesourcery.com>
Date:   Sat Jun 15 19:59:41 2013 +0000

    Fix spurious "inexact" exceptions from dbl-64 sqrt (bug 15631).

-- 
You are receiving this mail because:
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug math/15631] sqrt spurious inexact exceptions
  2013-06-14 20:42 [Bug math/15631] New: sqrt spurious inexact exceptions jsm28 at gcc dot gnu.org
  2013-06-15 20:00 ` [Bug math/15631] " jsm28 at gcc dot gnu.org
@ 2014-06-13 15:05 ` fweimer at redhat dot com
  1 sibling, 0 replies; 3+ messages in thread
From: fweimer at redhat dot com @ 2014-06-13 15:05 UTC (permalink / raw)
  To: glibc-bugs

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

Florian Weimer <fweimer at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
              Flags|                            |security-

-- 
You are receiving this mail because:
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-06-13 15:05 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-06-14 20:42 [Bug math/15631] New: sqrt spurious inexact exceptions jsm28 at gcc dot gnu.org
2013-06-15 20:00 ` [Bug math/15631] " jsm28 at gcc dot gnu.org
2014-06-13 15:05 ` fweimer at redhat dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).