From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30110 invoked by alias); 20 Dec 2013 17:55:55 -0000 Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: glibc-bugs-owner@sourceware.org Received: (qmail 30074 invoked by uid 48); 20 Dec 2013 17:55:51 -0000 From: "jsm28 at gcc dot gnu.org" To: glibc-bugs@sourceware.org Subject: [Bug math/16349] New: atan2 does not set errno on underflow Date: Fri, 20 Dec 2013 17:55:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: math X-Bugzilla-Version: 2.19 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: jsm28 at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2013-12/txt/msg00165.txt.bz2 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.