mailing list of musl libc
 help / color / mirror / code / Atom feed
From: paul zimmermann <Paul.Zimmermann@inria.fr>
To: Szabolcs Nagy <nsz@port70.net>
Cc: Szabolcs.Nagy@arm.com, nd@arm.com, jens.gustedt@inria.fr,
	Vincent.Lefevre@ens-lyon.fr, musl@lists.openwall.com
Subject: Re: Re: musl mathematical functions
Date: Fri, 10 Jan 2020 19:35:08 +0100	[thread overview]
Message-ID: <mwv9pj2m8z.fsf@tomate.loria.fr> (raw)
In-Reply-To: <20200110173023.GS23985@port70.net> (message from Szabolcs Nagy on Fri, 10 Jan 2020 18:30:23 +0100)

       Dear Szabolcs,

> i think libm functions are extremely rarely used with
> non-nearest rounding mode so i think
> 
>   NR accuracy >> DR accuracy >> NR symmetry >> NR speed
>   >> DR symmetry >> DR speed
> 
> where NR is nearest rounding and DR is directed rounding.

yes this makes sense.

> and by accuracy i just mean correct behavirour with respect
> to exceptions and results (i.e. small ulp errors).

note that if directed rounding is used to implement interval
arithmetic, it is very important to have the return value on
the right side with respect to the exact value (at the cost
of a few ulps of accuracy).

Paul


  reply	other threads:[~2020-01-10 18:35 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mwlfqit6tx.fsf@tomate.loria.fr>
2020-01-08 15:28 ` Szabolcs Nagy
2020-01-08 15:46   ` Rich Felker
2020-01-10 16:01   ` paul zimmermann
2020-01-10 17:30     ` Szabolcs Nagy
2020-01-10 18:35       ` paul zimmermann [this message]
2020-01-18 20:14         ` [musl] " Szabolcs Nagy

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=mwv9pj2m8z.fsf@tomate.loria.fr \
    --to=paul.zimmermann@inria.fr \
    --cc=Szabolcs.Nagy@arm.com \
    --cc=Vincent.Lefevre@ens-lyon.fr \
    --cc=jens.gustedt@inria.fr \
    --cc=musl@lists.openwall.com \
    --cc=nd@arm.com \
    --cc=nsz@port70.net \
    /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).