From: Sunil Pandey <skpgkp2@gmail.com>
To: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Cc: GNU C Library <libc-alpha@sourceware.org>
Subject: Re: [PATCH] Add missing math functions to benchtests
Date: Fri, 22 Oct 2021 16:12:21 -0700 [thread overview]
Message-ID: <CAMAf5_cXvWOJKdUkCtwnybqW9YCCndVt0SMktQV9uRcrkoD2fw@mail.gmail.com> (raw)
In-Reply-To: <3dc02603-3318-e0d3-8c67-8610e923e751@linaro.org>
On Fri, Oct 22, 2021 at 1:39 PM Adhemerval Zanella <
adhemerval.zanella@linaro.org> wrote:
>
>
> On 22/10/2021 16:04, Sunil K Pandey via Libc-alpha wrote:
> > Add acosf, acoshf, asinf, asinhf, atan2f, atanf, atanhf, cbrtf, coshf,
> > erfcf, erff, expm1f, hypotf, log10f, log1pf, sinhf, tanf and tanhf
> > functions to math benchtests.
>
> Please split one patch per function and add a rationale on how each input
> were generate. Keep in mind that using pure random values might not be
> meaningful (as Joseph has noted for my recent hypot/hypotf one [1].
>
> [1] https://sourceware.org/pipermail/libc-alpha/2021-October/131753.html
Thank you so much for your feedback.
I will split the patch for each function and fix the makefile as suggested.
In this patch, float input file is just a copy of the corresponding double
input file.
Looking for help, how to correctly generate float input files?
> > diff --git a/benchtests/Makefile b/benchtests/Makefile
> > index 4fcd73131a..a250a41664 100644
> > --- a/benchtests/Makefile
> > +++ b/benchtests/Makefile
> > @@ -28,6 +28,9 @@ bench-math := acos acosh asin asinh atan atanh cos
> cosh exp exp2 log log2 \
> > exp10f ilogb ilogbf cbrt erf erfc exp10 expm1 j0 j1 lgamma
> \
> > log10 log1p tgamma y0 y1 atan2
> >
> > +bench-math += acosf acoshf asinf asinhf atan2f atanf atanhf cbrtf coshf
> \
> > + erfcf erff expm1f hypotf log10f log1pf sinhf tanf tanhf
> > +
> > ifneq (,$(filter yes,$(float96-fcts)))
> > bench-math += cbrtl
> > endif
>
> For new rules I is better one input per line. In this case:
>
> bench-math += \
> acosf \
> acoshf \
> ...
> tanhf \
>
> (the last line does have a line continuation, it helps git diff).
>
next prev parent reply other threads:[~2021-10-22 23:12 UTC|newest]
Thread overview: 47+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-10-22 19:04 Sunil K Pandey
2021-10-22 20:24 ` Noah Goldstein
2021-10-22 20:38 ` Adhemerval Zanella
2021-10-22 23:12 ` Sunil Pandey [this message]
2021-10-25 17:05 ` Joseph Myers
2021-10-27 23:04 ` [PATCH v2] benchtests: Add acosf to bench-math Sunil K Pandey
2021-10-29 13:38 ` Sunil Pandey
2021-10-29 13:51 ` H.J. Lu
2021-10-29 17:19 ` [PATCH 00/12] benchtests: Add float version of math functions " Sunil K Pandey
2021-10-29 17:19 ` [PATCH 01/12] benchtests: Add acoshf function " Sunil K Pandey
2021-11-03 17:00 ` Paul Zimmermann
2021-10-29 17:19 ` [PATCH 02/12] benchtests: Add asinf " Sunil K Pandey
2021-11-04 7:48 ` Paul Zimmermann
2021-10-29 17:19 ` [PATCH 03/12] benchtests: Add asinhf " Sunil K Pandey
2021-11-04 8:16 ` Paul Zimmermann
2021-10-29 17:19 ` [PATCH 04/12] benchtests: Add atanf " Sunil K Pandey
2021-11-04 8:03 ` Paul Zimmermann
2021-10-29 17:19 ` [PATCH 05/12] benchtests: Add atanhf " Sunil K Pandey
2021-11-04 8:14 ` Paul Zimmermann
2021-10-29 17:19 ` [PATCH 06/12] benchtests: Add cbrtf " Sunil K Pandey
2021-11-04 7:58 ` Paul Zimmermann
2021-10-29 17:19 ` [PATCH 07/12] benchtests: Add coshf " Sunil K Pandey
2021-11-03 16:43 ` Paul Zimmermann
2021-10-29 17:19 ` [PATCH 08/12] benchtests: Add erfcf " Sunil K Pandey
2021-11-04 8:11 ` Paul Zimmermann
2021-10-29 17:19 ` [PATCH 09/12] benchtests: Add erff " Sunil K Pandey
2021-11-03 17:07 ` Paul Zimmermann
2021-10-29 17:19 ` [PATCH 10/12] benchtests: Add log10f " Sunil K Pandey
2021-11-04 8:00 ` Paul Zimmermann
2021-10-29 17:19 ` [PATCH 11/12] benchtests: Add sinhf " Sunil K Pandey
2021-11-04 7:53 ` Paul Zimmermann
2021-10-29 17:19 ` [PATCH 12/12] benchtests: Add tanhf " Sunil K Pandey
2021-11-03 16:53 ` Paul Zimmermann
2021-11-01 13:31 ` [PATCH 00/12] benchtests: Add float version of math functions " Sunil Pandey
2021-11-01 13:55 ` H.J. Lu
2021-10-29 20:44 ` [PATCH 0/4] benchtests: Add atan2f, expm1f, log1pf and tanf " Sunil K Pandey
2021-10-29 20:44 ` [PATCH 1/4] benchtests: Add atan2f function " Sunil K Pandey
2021-11-03 16:22 ` Paul Zimmermann
2021-10-29 20:44 ` [PATCH 2/4] benchtests: Add expm1f " Sunil K Pandey
2021-11-03 16:33 ` Paul Zimmermann
2021-10-29 20:44 ` [PATCH 3/4] benchtests: Add log1pf " Sunil K Pandey
2021-11-03 16:17 ` Paul Zimmermann
2021-10-29 20:44 ` [PATCH 4/4] benchtests: Add tanf " Sunil K Pandey
2021-11-01 13:33 ` [PATCH 0/4] benchtests: Add atan2f, expm1f, log1pf and tanf " Sunil Pandey
2021-11-01 20:33 ` Joseph Myers
2021-11-04 8:57 ` [PATCH v2] benchtests: Add acosf " Paul Zimmermann
2021-11-05 22:20 ` Sunil Pandey
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=CAMAf5_cXvWOJKdUkCtwnybqW9YCCndVt0SMktQV9uRcrkoD2fw@mail.gmail.com \
--to=skpgkp2@gmail.com \
--cc=adhemerval.zanella@linaro.org \
--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).