Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date: Mon, 25 Feb 2019 00:28:20 +1100 (AEDT)
From: Damian McGuckin <damianm@....com.au>
To: musl@...ts.openwall.com
Subject: FE Exception triggered by comparison


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

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.