From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/15011 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Damian McGuckin Newsgroups: gmane.linux.lib.musl.general Subject: Re: [PATCH] fmax(), fmaxf(), fmaxl(), fmin(), fminf(), fminl() simplified Date: Thu, 12 Dec 2019 09:14:11 +1100 (AEDT) Message-ID: References: <557979287957451E9255CCBC4CD7CBE5@H270> <20191211104955.GN23985@port70.net> <5BF8FB2FE1AA418393E6091F7F8AFC14@H270> <20191211131659.GQ23985@port70.net> <438FA5B9D0E8497FA998E44E99C7CC8B@H270> 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="114956"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Alpine 2.02 (LRH 1266 2009-07-14) Cc: Szabolcs Nagy To: musl@lists.openwall.com Original-X-From: musl-return-15027-gllmg-musl=m.gmane.org@lists.openwall.com Wed Dec 11 23:14:32 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 1ifAFb-000TkP-0m for gllmg-musl@m.gmane.org; Wed, 11 Dec 2019 23:14:31 +0100 Original-Received: (qmail 3431 invoked by uid 550); 11 Dec 2019 22:14:28 -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 3413 invoked from network); 11 Dec 2019 22:14:27 -0000 X-Authentication-Warning: key0.esi.com.au: damianm owned process doing -bs In-Reply-To: <438FA5B9D0E8497FA998E44E99C7CC8B@H270> Xref: news.gmane.org gmane.linux.lib.musl.general:15011 Archived-At: On Wed, 11 Dec 2019, Stefan Kanthak wrote: > This is better than my proposed change, as it also avoids the side- > effect of (x != x) which can raise exceptions, and gets rid of the > explicit transfer to integer registers, which can hurt performance. I thought that x != x should NOT raise an exception, at least as I read Kahan's lecture notes. Regards - 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