mailing list of musl libc
 help / color / mirror / code / Atom feed
From: Damian McGuckin <damianm@esi.com.au>
To: musl@lists.openwall.com
Subject: Re: [musl] Min and Max of 2 Floating Point numbers
Date: Mon, 24 Feb 2020 08:03:30 +1100 (AEDT)	[thread overview]
Message-ID: <alpine.LRH.2.02.2002240756510.13368@key0.esi.com.au> (raw)
In-Reply-To: <20200223152147.GO1663@brightrain.aerifal.cx>

On Sun, 23 Feb 2020, Rich Felker wrote:

> Unless by "propagate nans" you mean some specific behavior beyond
> preserving one of the input nans,

Correct.  Corrently, for input 'x' and 'y', the routines agree with IEEE 
754 2008 and say

 	if (isnan(x))
 		return y;

To agree with IEEE 754 2019, they shold say.

 	if (isnan(x))
 		return x;

There is a new operation defined which I think preserves the old 
behaviour.

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

  reply	other threads:[~2020-02-23 21:03 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-02-23  7:08 Damian McGuckin
2020-02-23 15:21 ` Rich Felker
2020-02-23 21:03   ` Damian McGuckin [this message]
2020-02-23 21:18 ` Florian Weimer
2020-02-23 23:20   ` Damian McGuckin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=alpine.LRH.2.02.2002240756510.13368@key0.esi.com.au \
    --to=damianm@esi.com.au \
    --cc=musl@lists.openwall.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).