This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug math/10817] New: coshl overflows prematurely


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]