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/3868] New: expl(huge negative value) incorrectly signals an OVERFLOW exception


For negative long double arguments of huge magnitude, the expl() library
function sets the FPUs OVERFLOW exception flag, in addition to the UNDERFLOW and
INEXACT excpetion flags. This can easily be reproduced by passing a long double
of value -LDBL_MAX as argument. The result is +0.0 exactly, but the OVERFLOW
flag is set. In contrast, exp(-DBL_MAX) onlt sets the UNDERFLOW and INEXACT
floating point exception flags.

-- 
           Summary: expl(huge negative value) incorrectly signals an
                    OVERFLOW exception
           Product: glibc
           Version: 2.4
            Status: NEW
          Severity: normal
          Priority: P2
         Component: math
        AssignedTo: aj at suse dot de
        ReportedBy: kreckel at ginac dot de
                CC: glibc-bugs at sources dot redhat dot com


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

------- 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]