This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: Fix dbl-64 e_sqrt.c for non-default rounding modes (bug 16271)
- From: Andreas Jaeger <aj at suse dot com>
- To: "Joseph S. Myers" <joseph at codesourcery dot com>, libc-alpha at sourceware dot org
- Date: Thu, 28 Nov 2013 13:05:17 +0100
- Subject: Re: Fix dbl-64 e_sqrt.c for non-default rounding modes (bug 16271)
- Authentication-results: sourceware.org; auth=none
- References: <Pine dot LNX dot 4 dot 64 dot 1311272255420 dot 5433 at digraph dot polyomino dot org dot uk>
On 11/27/2013 11:56 PM, Joseph S. Myers wrote:
> This patch fixes bug 16271, incorrect rounding by dbl-64/e_sqrt.c in
> non-default rounding modes. The calculation is carried out in
> round-to-nearest (since that's what any error analysis would have been
> based on) and then the round-to-nearest result is adjusted for other
> rounding modes based on the result of a division that is carried out
> anyway to get "inexact" exceptions right.
ok, thanks,
Andreas
--
Andreas Jaeger aj@{suse.com,opensuse.org} Twitter/Identica: jaegerandi
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Jeff Hawn,Jennifer Guild,Felix Imendörffer,HRB16746 (AG Nürnberg)
GPG fingerprint = 93A3 365E CE47 B889 DF7F FED1 389A 563C C272 A126