From: paul zimmermann <Paul.Zimmermann@inria.fr>
To: libc-alpha@sourceware.org
Subject: faster exp10f code
Date: Mon, 06 Apr 2020 13:51:17 +0200 [thread overview]
Message-ID: <mwo8s496iy.fsf@tomate.loria.fr> (raw)
Hi,
the 3 patches referenced below implement some faster exp10f code, inspired by
the expf code, that is much faster than the current one (tested on x86_64).
Here are the "make bench" results (I had to add an entry for exp10f):
before new code:
"exp10f": {
"": {
"duration": 3.40525e+09,
"iterations": 6.4368e+07,
"max": 65906.3,
"min": 24.056,
"mean": 52.9029
}
with new code:
"exp10f": {
"": {
"duration": 3.30806e+09,
"iterations": 1.59728e+08,
"max": 39557.8,
"min": 16.104,
"mean": 20.7106
}
I disabled the code in math/w_exp10f_compat.c by adding #if 0 ... #endif
around it, since I don't know how to properly do it.
Paul Zimmermann
[1] https://homepages.loria.fr/PZimmermann/glibc-contrib/0001-added-new-code-for-exp10f-inspired-from-expf-and-reu.patch
[2] https://homepages.loria.fr/PZimmermann/glibc-contrib/0002-e_exp10f.c-cleaned-up-added-error-analysis-and-comme.patch
[3] https://homepages.loria.fr/PZimmermann/glibc-contrib/0003-integrate-new-exp10f-code.patch
next reply other threads:[~2020-04-07 12:13 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-04-06 11:51 paul zimmermann [this message]
2020-04-07 20:36 ` Joseph Myers
2020-04-07 20:45 ` Joseph Myers
2020-04-08 10:15 ` paul zimmermann
2020-04-08 11:35 ` Adhemerval Zanella
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=mwo8s496iy.fsf@tomate.loria.fr \
--to=paul.zimmermann@inria.fr \
--cc=libc-alpha@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).