public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug math/13840] New: hypotf overflow and underflow
@ 2012-03-13 20:39 jsm28 at gcc dot gnu.org
  2012-03-14  1:21 ` [Bug math/13840] " 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 20:39 UTC (permalink / raw)
  To: glibc-bugs

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

             Bug #: 13840
           Summary: hypotf 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


sysdeps/ieee754/flt-32/e_hypotf.c's implementation of hypotf overflows
internally for some large inputs (for example, giving inf for hypotf (0x3p125,
0x4p125) instead of 0x5p125).  It also gives inaccurate results for some small
inputs that are not subnormal.  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/13840] hypotf overflow and underflow
  2012-03-13 20:39 [Bug math/13840] New: hypotf overflow and underflow jsm28 at gcc dot gnu.org
@ 2012-03-14  1:21 ` 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  1:21 UTC (permalink / raw)
  To: glibc-bugs

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

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 01:20:44 UTC ---
Fixed by:

commit 7c10fd3515f983ca732b2166ccffebbf83603f1f
Author: David S. Miller <davem@davemloft.net>
Date:   Tue Mar 13 18:08:58 2012 -0700

    Fix hypotf overflow/underflow by using double precision instead of scaling.

        [BZ #13840]
        * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
        double-precision for the calculation instead of scaling.

Testcases added by:

commit aa4a2ae1dbc2c7a3469ec13610f0d7a84e3bfc79
Author: Joseph Myers <joseph@codesourcery.com>
Date:   Wed Mar 14 01:12:05 2012 +0000

    Add tests for hypot overflow/underflow.

-- 
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/13840] hypotf overflow and underflow
  2012-03-13 20:39 [Bug math/13840] New: hypotf overflow and underflow jsm28 at gcc dot gnu.org
  2012-03-14  1:21 ` [Bug math/13840] " 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=13840

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 20:39 [Bug math/13840] New: hypotf overflow and underflow jsm28 at gcc dot gnu.org
2012-03-14  1:21 ` [Bug math/13840] " 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).