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/13841] New: csqrt overflow and underflow


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.


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