This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug math/13841] New: csqrt overflow and underflow
- From: "jsm28 at gcc dot gnu.org" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: Tue, 13 Mar 2012 21:21:36 +0000
- Subject: [Bug math/13841] New: csqrt overflow and underflow
- Auto-submitted: auto-generated
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.