From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/13854 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Damian McGuckin Newsgroups: gmane.linux.lib.musl.general Subject: FE Exception triggered by comparison Date: Mon, 25 Feb 2019 00:28:20 +1100 (AEDT) Message-ID: Reply-To: musl@lists.openwall.com Mime-Version: 1.0 Content-Type: TEXT/PLAIN; format=flowed; charset=US-ASCII Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="47466"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Alpine 2.02 (LRH 1266 2009-07-14) To: musl@lists.openwall.com Original-X-From: musl-return-13870-gllmg-musl=m.gmane.org@lists.openwall.com Sun Feb 24 14:28:39 2019 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by blaine.gmane.org with smtp (Exim 4.89) (envelope-from ) id 1gxtpf-000CFG-4p for gllmg-musl@m.gmane.org; Sun, 24 Feb 2019 14:28:39 +0100 Original-Received: (qmail 26174 invoked by uid 550); 24 Feb 2019 13:28:35 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Original-Received: (qmail 26107 invoked from network); 24 Feb 2019 13:28:34 -0000 X-Authentication-Warning: key0.esi.com.au: damianm owned process doing -bs Xref: news.gmane.org gmane.linux.lib.musl.general:13854 Archived-At: What comparison of FP numbers trigger invalid operation exceptions? Does a comparison like if (x != x) { /* get to here if x == NaN * } which tests for a NaN cause an invalid operation if given an sNaN? Even reading the standard numerous times and I am not any wiser. Thanks - Damian Pacific Engineering Systems International, 277-279 Broadway, Glebe NSW 2037 Ph:+61-2-8571-0847 .. Fx:+61-2-9692-9623 | unsolicited email not wanted here Views & opinions here are mine and not those of any past or present employer