public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug math/13841] New: csqrt overflow and underflow
@ 2012-03-13 21:22 jsm28 at gcc dot gnu.org
  2012-03-14 11:55 ` [Bug math/13841] " jsm28 at gcc dot gnu.org
  2014-06-26 13:59 ` fweimer at redhat dot com
  0 siblings, 2 replies; 3+ messages in thread
From: jsm28 at gcc dot gnu.org @ 2012-03-13 21:22 UTC (permalink / raw)
  To: glibc-bugs

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

             Bug #: 13841
           Summary: csqrt overflow and underflow
           Product: glibc
           Version: 2.15
            Status: NEW
          Severity: normal
          Priority: P2
         Component: math
        AssignedTo: jsm28@gcc.gnu.org
        ReportedBy: jsm28@gcc.gnu.org
    Classification: Unclassified


The use of hypot in csqrt means it suffers from overflow and underflow in
internal calculations.  On x86_64, csqrt (DBL_MAX + DBL_MAX * I) wrongly
returns inf + 0 * I; for 0x1p-1074 + 0x1p-1074 * I, the result is 0 + NaN * I. 
I'll send a patch.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- 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/13841] csqrt overflow and underflow
  2012-03-13 21:22 [Bug math/13841] New: csqrt overflow and underflow jsm28 at gcc dot gnu.org
@ 2012-03-14 11:55 ` jsm28 at gcc dot gnu.org
  2014-06-26 13:59 ` fweimer at redhat dot com
  1 sibling, 0 replies; 3+ messages in thread
From: jsm28 at gcc dot gnu.org @ 2012-03-14 11:55 UTC (permalink / raw)
  To: glibc-bugs

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

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> 2012-03-14 11:55:04 UTC ---
Fixed by:

commit e456826d7a539fb322bb9719297bd386eded8e32
Author: Joseph Myers <joseph@codesourcery.com>
Date:   Wed Mar 14 11:53:32 2012 +0000

    Fix csqrt overflow/underflow (bug 13841).

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- 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/13841] csqrt overflow and underflow
  2012-03-13 21:22 [Bug math/13841] New: csqrt overflow and underflow jsm28 at gcc dot gnu.org
  2012-03-14 11:55 ` [Bug math/13841] " jsm28 at gcc dot gnu.org
@ 2014-06-26 13:59 ` fweimer at redhat dot com
  1 sibling, 0 replies; 3+ messages in thread
From: fweimer at redhat dot com @ 2014-06-26 13:59 UTC (permalink / raw)
  To: glibc-bugs

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

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-26 13:59 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-03-13 21:22 [Bug math/13841] New: csqrt overflow and underflow jsm28 at gcc dot gnu.org
2012-03-14 11:55 ` [Bug math/13841] " jsm28 at gcc dot gnu.org
2014-06-26 13:59 ` 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).