From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32085 invoked by alias); 2 Sep 2013 13:51:33 -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 31969 invoked by uid 48); 2 Sep 2013 13:51:29 -0000 From: "bugdal at aerifal dot cx" To: glibc-bugs@sourceware.org Subject: [Bug libc/15918] Unnecessary check for equality in hypotf() Date: Mon, 02 Sep 2013 13:51:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: libc X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: bugdal at aerifal dot cx X-Bugzilla-Status: REOPENED 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_status resolution Message-ID: In-Reply-To: References: 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-09/txt/msg00012.txt.bz2 https://sourceware.org/bugzilla/show_bug.cgi?id=15918 Rich Felker changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|INVALID |--- --- Comment #4 from Rich Felker --- Andreas, in the case of hypot(NAN,INFINITY), (ha == 0x7f800000) is false, so that branch won't be taken, and (hb == 0x7f800000) is true, but in that case, fabs(y) gives the right value no matter what the value of x is. I think the original bug report is likely correct. It's just not as "obvious" as the reporter considered it. -- You are receiving this mail because: You are on the CC list for the bug.