public inbox for newlib@sourceware.org
 help / color / mirror / Atom feed
From: Jeff Johnston <jjohnstn@redhat.com>
To: andoni.arregui@gtd-gmbh.de
Cc: Paul Zimmermann <Paul.Zimmermann@inria.fr>, newlib@sourceware.org
Subject: Re: [PATCH 0/4] Fix huge error for pow detected by Paul Zimmermann
Date: Thu, 13 Apr 2023 13:37:39 -0400	[thread overview]
Message-ID: <CAOox84sXRAoVi9hhz_PaxiFv3q2kKrSjdeRGTZ_SwONBR9d6UA@mail.gmail.com> (raw)
In-Reply-To: <af0127bdcbe6394c605c726dae0acf1abc1a65e2.camel@gtd-gmbh.de>

[-- Attachment #1: Type: text/plain, Size: 2245 bytes --]

Thanks Andoni and Paul.  Patches pushed to master.

-- Jeff J.

On Thu, Apr 13, 2023 at 10:42 AM Andoni Arregi <andoni.arregui@gtd-gmbh.de>
wrote:

> Dear Paul,
>
> thank *you* for detecting the errors/inaccuracies first (questions are as
> important as the answers) and then
> independently confirming that the patch solves them.
>
> You know how tricky this is and how easy it is to fix something here and
> break it there. That's why such an independent
> verification in addition to our tests is so important :-)
>
> By the way, most of the submitted work is product of the effort of our
> colleague Fabian Schriever.
>
> Best regards
>
> On Thu, 2023-04-13 at 14:16 +0200, Paul Zimmermann wrote:
> >        Hi Andoni,
> >
> > I had time to check this patch series on top of be2749c.
> >
> > I confirm the issue I reported is fixed.
> >
> > In addition, the maximal known error, which was 636 ulps
> > apart from the above issue, has dropped to less than 1 ulp:
> >
> > pow 0 -1 0x1.4c3064d46aef3p-851,-0x1.cef4118ed50c2p-10 [0.893] 0.892119
> 0.8921192373561432
> >
> > Thank you, great work!
> >
> > Paul
> >
> > > From: Andoni Arregi <andoni.arregui@gtd-gmbh.de>
> > > Cc: Andoni Arregi <andoni.arregui@gtd-gmbh.de>
> > > Date: Wed, 12 Apr 2023 17:34:41 +0200
> > >
> > > This patch series fixes in pow the huge error detected by Paul
> > > Zimmermann where x is negative and y is a large odd integer.
> > >
> > > There is also an accuracy fix for cases where x is close to 1 and y is
> > > large.
> > >
> > > Andoni Arregi (4):
> > >   Fix missing sign for overflow/underflow where x is negative and y is
> > >     large odd integer
> > >   Fix x close to 1, y between 2^31 and 2^64
> > >   Compare j as unsigned
> > >   Replace always true if with else
> > >
> > >  newlib/libm/math/e_pow.c | 48 +++++++++++++++++++++-------------------
> > >  1 file changed, 25 insertions(+), 23 deletions(-)
> > >
> > > --
> > > 2.40.0
> > >
> > >
> > >
>
> --
> Andoni Arregi
> Geschäftsführer
>
> GTD GmbH
> Ravensburger Str. 32a, 88677 Markdorf
> T: +49 7544 96440 22 | M: +49 151 65620499 | F: +49 7544 96440 29
> http://www.gtd-gmbh.de andoni.arregi@gtd-gmbh.de
>
>

      reply	other threads:[~2023-04-13 17:37 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-04-12 15:34 Andoni Arregi
2023-04-12 15:34 ` [PATCH 1/4] Fix missing sign for overflow/underflow where x is negative and y is large odd integer Andoni Arregi
2023-04-12 15:34 ` [PATCH 2/4] Fix x close to 1, y between 2^31 and 2^64 Andoni Arregi
2023-04-12 15:34 ` [PATCH 3/4] Compare j as unsigned Andoni Arregi
2023-04-12 15:34 ` [PATCH 4/4] Replace always true if with else Andoni Arregi
2023-04-13  5:46 ` [PATCH 0/4] Fix huge error for pow detected by Paul Zimmermann Paul Zimmermann
2023-04-13 12:16 ` Paul Zimmermann
2023-04-13 14:39   ` Andoni Arregi
2023-04-13 17:37     ` Jeff Johnston [this message]

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=CAOox84sXRAoVi9hhz_PaxiFv3q2kKrSjdeRGTZ_SwONBR9d6UA@mail.gmail.com \
    --to=jjohnstn@redhat.com \
    --cc=Paul.Zimmermann@inria.fr \
    --cc=andoni.arregui@gtd-gmbh.de \
    --cc=newlib@sourceware.org \
    /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.
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 read-only IMAP folder(s) and NNTP newsgroup(s).