public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug math/10817] New: coshl overflows prematurely
@ 2009-10-20 16:35 chasonr at newsguy dot com
  2009-10-27 20:48 ` [Bug math/10817] " drepper at redhat dot com
  0 siblings, 1 reply; 2+ messages in thread
From: chasonr at newsguy dot com @ 2009-10-20 16:35 UTC (permalink / raw)
  To: glibc-bugs

The coshl function indicates an overflow when its result is not representable as
double, even when the result is representable as long double.  An example is
"coshl(1000.L);".

sinhl does not have this bug.

The bug appears to be that the version of coshl in math/w_coshl.c uses __finite
to check the result of __ieee754_coshl.  It should use __finitel, as sinhl in
math/w_sinhl.c does.  This bug should be present on any system that uses
math/w_coshl.c as its coshl and defines long double as having a greater exponent
range than double.

I found the bug in a version of 2.7 that shipped with Fedora 8; but the bug is
present in the 2.10.1 source as well.

-- 
           Summary: coshl overflows prematurely
           Product: glibc
           Version: 2.9
            Status: NEW
          Severity: normal
          Priority: P2
         Component: math
        AssignedTo: aj at suse dot de
        ReportedBy: chasonr at newsguy dot com
                CC: glibc-bugs at sources dot redhat dot com
 GCC build triplet: x86_64-unknown-linux
  GCC host triplet: x86_64-unknown-linux
GCC target triplet: x86_64-unknown-linux


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

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


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

* [Bug math/10817] coshl overflows prematurely
  2009-10-20 16:35 [Bug math/10817] New: coshl overflows prematurely chasonr at newsguy dot com
@ 2009-10-27 20:48 ` drepper at redhat dot com
  0 siblings, 0 replies; 2+ messages in thread
From: drepper at redhat dot com @ 2009-10-27 20:48 UTC (permalink / raw)
  To: glibc-bugs


------- Additional Comments From drepper at redhat dot com  2009-10-27 20:48 -------
Fixed in git.

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


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

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


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

end of thread, other threads:[~2009-10-27 20:48 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-10-20 16:35 [Bug math/10817] New: coshl overflows prematurely chasonr at newsguy dot com
2009-10-27 20:48 ` [Bug math/10817] " drepper 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).