mailing list of musl libc
 help / color / mirror / code / Atom feed
From: Paul Zimmermann <Paul.Zimmermann@inria.fr>
To: Rich Felker <dalias@libc.org>
Cc: musl@lists.openwall.com
Subject: Re: [musl] issue with exp10l
Date: Fri, 08 Jan 2021 10:06:53 +0100	[thread overview]
Message-ID: <mwa6tjlrv6.fsf@tomate.loria.fr> (raw)
In-Reply-To: <20210107200250.GG22981@brightrain.aerifal.cx> (message from Rich Felker on Thu, 7 Jan 2021 15:02:50 -0500)

       Dear Rich,

> OK, on further investigation it looks like your problem is that you're
> not passing a NAN but a trap representation. The representation is
> only a nan if the exponent value is 0x7fff. For exponent not 0x7fff or
> 0, the high bit of the significand must be set; otherwise it's a trap
> representation.

thank you. I have now forced the high bit of the significand to be set,
and it works better indeed. I have found errors up to 40 ulps for exp10l:

exp10l 0xd.41cfe8659e3d7eep+8l 40.1

Best regards,
Paul

      reply	other threads:[~2021-01-08  9:07 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-01-07 11:17 Paul Zimmermann
2021-01-07 19:49 ` Rich Felker
2021-01-07 20:02   ` Rich Felker
2021-01-08  9:06     ` Paul Zimmermann [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=mwa6tjlrv6.fsf@tomate.loria.fr \
    --to=paul.zimmermann@inria.fr \
    --cc=dalias@libc.org \
    --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).