This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug math/16349] New: atan2 does not set errno on underflow
- From: "jsm28 at gcc dot gnu.org" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Fri, 20 Dec 2013 17:55:51 +0000
- Subject: [Bug math/16349] New: atan2 does not set errno on underflow
- Auto-submitted: auto-generated
https://sourceware.org/bugzilla/show_bug.cgi?id=16349
Bug ID: 16349
Summary: atan2 does not set errno on underflow
Product: glibc
Version: 2.19
Status: NEW
Severity: normal
Priority: P2
Component: math
Assignee: unassigned at sourceware dot org
Reporter: jsm28 at gcc dot gnu.org
At least some atan2 versions do not set errno to ERANGE on underflow (atan2
(small, positive large) where y/x underflows to 0) although this meets the
definition of a case where glibc aims to set errno on underflow. For example,
testing for float on x86_64:
Failure: atan2 (-0x4p-128, 0xf.fffffp+124): errno set to 0, expected 34
(ERANGE)
(I've sent a proposed DR to John Benito for the lack of mention of a range
error for this case in C11.)
--
You are receiving this mail because:
You are on the CC list for the bug.