From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/15118 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: paul zimmermann Newsgroups: gmane.linux.lib.musl.general Subject: Re: Re: musl mathematical functions Date: Fri, 10 Jan 2020 19:35:08 +0100 Message-ID: References: <5cf6c0cf-6988-daac-8b74-43bb0e2c625f@arm.com> <20200110173023.GS23985@port70.net> Reply-To: musl@lists.openwall.com Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="57731"; mail-complaints-to="usenet@blaine.gmane.org" Cc: Szabolcs.Nagy@arm.com, nd@arm.com, jens.gustedt@inria.fr, Vincent.Lefevre@ens-lyon.fr, musl@lists.openwall.com To: Szabolcs Nagy Original-X-From: musl-return-15134-gllmg-musl=m.gmane-mx.org@lists.openwall.com Fri Jan 10 22:04:44 2020 Return-path: Envelope-to: gllmg-musl@m.gmane-mx.org Original-Received: from mother.openwall.net ([195.42.179.200]) by blaine.gmane.org with smtp (Exim 4.89) (envelope-from ) id 1iq1R5-0017bM-Mz for gllmg-musl@m.gmane-mx.org; Fri, 10 Jan 2020 22:03:15 +0100 Original-Received: (qmail 29760 invoked by uid 550); 10 Jan 2020 21:03:10 -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 14287 invoked from network); 10 Jan 2020 18:35:23 -0000 X-IronPort-AV: E=Sophos;i="5.69,418,1571695200"; d="scan'208";a="335447946" In-reply-to: <20200110173023.GS23985@port70.net> (message from Szabolcs Nagy on Fri, 10 Jan 2020 18:30:23 +0100) Xref: news.gmane.org gmane.linux.lib.musl.general:15118 Archived-At: 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