From: Paul Zimmermann <Paul.Zimmermann@inria.fr>
To: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Cc: libc-alpha@sourceware.org, dj@redhat.com, josmyers@redhat.com,
sibid@uvic.ca
Subject: Re: [PATCH 00/15] Add c23 CORE-MATH binary32 implementations to libm
Date: Sat, 01 Feb 2025 09:14:45 +0100 [thread overview]
Message-ID: <p9u0y0yqgjyi.fsf@araignee.loria.fr> (raw)
In-Reply-To: <20250131191844.2582716-1-adhemerval.zanella@linaro.org> (message from Adhemerval Zanella on Fri, 31 Jan 2025 16:17:04 -0300)
> From: Adhemerval Zanella <adhemerval.zanella@linaro.org>
> Cc: DJ Delorie <dj@redhat.com>,
> Joseph Myers <josmyers@redhat.com>,
> Paul Zimmermann <Paul.Zimmermann@inria.fr>,
> Alexei Sibidanov <sibid@uvic.ca>
> Date: Fri, 31 Jan 2025 16:17:04 -0300
>
> This patchset adds the optimized and correctly rounded acospif, asinpif,
> atan2pif, atanpif, cospif, sinpif, and tanpif from CORE-MATH [1]. Each
> implementation has a benchmark to evaluate the performance improvements.
>
> All implementation shows performance improvements in all but one case:
> asinpif on x86_64/x86_64-v2. This is due to the use of a fma operation
> in the fast patch. Only x86_64-v3 provides it without a function call,
patch -> path
I will check each patch provides correct rounding for all rounding modes on x86_64.
Paul
> and this is mitigated with an ifunc variant for x86_64-v3.
>
> [1] https://gitlab.inria.fr/core-math/core-math
>
> Adhemerval Zanella (15):
> benchtests: Add acospif
> benchtests: Add asinpif
> benchtests: Add atan2pif
> benchtests: Add atanpif
> benchtests: Add cospif
> benchtests: Add sinpif
> benchtests: Add tanpif
> math: Use acospif from CORE-MATH
> math: Use asinpif from CORE-MATH
> math: Use atan2pif from CORE-MATH
> math: Use atanpif from CORE-MATH
> math: Use cospif from CORE-MATH
> math: Use sinpif from CORE-MATH
> math: Use tanpif from CORE-MATH
> x86_64: Add asinpif with FMA
>
> SHARED-FILES | 28 +
> benchtests/Makefile | 7 +
> benchtests/acospif-inputs | 2710 +++++++++++++++++
> benchtests/asinpif-inputs | 2710 +++++++++++++++++
> benchtests/atan2pif-inputs | 2005 ++++++++++++
> benchtests/atanpif-inputs | 2005 ++++++++++++
> benchtests/cospif-inputs | 2409 +++++++++++++++
> benchtests/sinpif-inputs | 2409 +++++++++++++++
> benchtests/tanpif-inputs | 2409 +++++++++++++++
> sysdeps/aarch64/libm-test-ulps | 28 -
> sysdeps/arc/fpu/libm-test-ulps | 28 -
> sysdeps/arc/nofpu/libm-test-ulps | 7 -
> sysdeps/arm/libm-test-ulps | 28 -
> sysdeps/hppa/fpu/libm-test-ulps | 28 -
> sysdeps/i386/fpu/libm-test-ulps | 28 -
> .../i386/i686/fpu/multiarch/libm-test-ulps | 28 -
> sysdeps/ieee754/flt-32/math_config.h | 25 +
> sysdeps/ieee754/flt-32/s_acospif.c | 137 +
> sysdeps/ieee754/flt-32/s_asinpif.c | 138 +
> sysdeps/ieee754/flt-32/s_atan2pif.c | 238 ++
> sysdeps/ieee754/flt-32/s_atanpif.c | 109 +
> sysdeps/ieee754/flt-32/s_cospif.c | 136 +
> sysdeps/ieee754/flt-32/s_sinpif.c | 134 +
> sysdeps/ieee754/flt-32/s_tanpif.c | 88 +
> sysdeps/loongarch/lp64/libm-test-ulps | 28 -
> sysdeps/mips/mips64/libm-test-ulps | 28 -
> sysdeps/or1k/fpu/libm-test-ulps | 28 -
> sysdeps/or1k/nofpu/libm-test-ulps | 7 -
> sysdeps/powerpc/fpu/libm-test-ulps | 28 -
> sysdeps/powerpc/fpu/math_private.h | 1 +
> sysdeps/riscv/nofpu/libm-test-ulps | 7 -
> sysdeps/riscv/rvd/libm-test-ulps | 28 -
> sysdeps/s390/fpu/libm-test-ulps | 28 -
> sysdeps/sparc/fpu/libm-test-ulps | 28 -
> sysdeps/x86_64/fpu/libm-test-ulps | 28 -
> sysdeps/x86_64/fpu/multiarch/Makefile | 2 +
> sysdeps/x86_64/fpu/multiarch/s_asinpif-fma.c | 4 +
> sysdeps/x86_64/fpu/multiarch/s_asinpif.c | 33 +
> 38 files changed, 17737 insertions(+), 413 deletions(-)
> create mode 100644 benchtests/acospif-inputs
> create mode 100644 benchtests/asinpif-inputs
> create mode 100644 benchtests/atan2pif-inputs
> create mode 100644 benchtests/atanpif-inputs
> create mode 100644 benchtests/cospif-inputs
> create mode 100644 benchtests/sinpif-inputs
> create mode 100644 benchtests/tanpif-inputs
> create mode 100644 sysdeps/ieee754/flt-32/s_acospif.c
> create mode 100644 sysdeps/ieee754/flt-32/s_asinpif.c
> create mode 100644 sysdeps/ieee754/flt-32/s_atan2pif.c
> create mode 100644 sysdeps/ieee754/flt-32/s_atanpif.c
> create mode 100644 sysdeps/ieee754/flt-32/s_cospif.c
> create mode 100644 sysdeps/ieee754/flt-32/s_sinpif.c
> create mode 100644 sysdeps/ieee754/flt-32/s_tanpif.c
> create mode 100644 sysdeps/x86_64/fpu/multiarch/s_asinpif-fma.c
> create mode 100644 sysdeps/x86_64/fpu/multiarch/s_asinpif.c
>
> --
> 2.43.0
>
>
prev parent reply other threads:[~2025-02-01 8:14 UTC|newest]
Thread overview: 57+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-01-31 19:17 Adhemerval Zanella
2025-01-31 19:17 ` [PATCH 01/15] benchtests: Add acospif Adhemerval Zanella
2025-02-07 22:00 ` DJ Delorie
2025-01-31 19:17 ` [PATCH 02/15] benchtests: Add asinpif Adhemerval Zanella
2025-02-07 22:06 ` DJ Delorie
2025-02-11 12:56 ` Adhemerval Zanella Netto
2025-01-31 19:17 ` [PATCH 03/15] benchtests: Add atan2pif Adhemerval Zanella
2025-02-07 22:19 ` DJ Delorie
2025-01-31 19:17 ` [PATCH 04/15] benchtests: Add atanpif Adhemerval Zanella
2025-02-07 22:36 ` DJ Delorie
2025-01-31 19:17 ` [PATCH 05/15] benchtests: Add cospif Adhemerval Zanella
2025-02-07 22:51 ` DJ Delorie
2025-02-11 13:13 ` Adhemerval Zanella Netto
2025-02-11 19:56 ` DJ Delorie
2025-01-31 19:17 ` [PATCH 06/15] benchtests: Add sinpif Adhemerval Zanella
2025-02-07 22:54 ` DJ Delorie
2025-02-11 13:13 ` Adhemerval Zanella Netto
2025-02-11 19:58 ` DJ Delorie
2025-01-31 19:17 ` [PATCH 07/15] benchtests: Add tanpif Adhemerval Zanella
2025-02-01 8:18 ` Paul Zimmermann
2025-02-07 22:55 ` DJ Delorie
2025-01-31 19:17 ` [PATCH 08/15] math: Use acospif from CORE-MATH Adhemerval Zanella
2025-02-01 8:22 ` Paul Zimmermann
2025-02-08 2:15 ` DJ Delorie
2025-02-11 13:16 ` Adhemerval Zanella Netto
2025-01-31 19:17 ` [PATCH 09/15] math: Use asinpif " Adhemerval Zanella
2025-02-01 8:28 ` Paul Zimmermann
2025-02-03 6:40 ` Paul Zimmermann
2025-02-03 12:27 ` Adhemerval Zanella Netto
2025-02-08 3:03 ` DJ Delorie
2025-01-31 19:17 ` [PATCH 10/15] math: Use atan2pif " Adhemerval Zanella
2025-02-08 4:20 ` DJ Delorie
2025-02-11 13:27 ` Adhemerval Zanella Netto
2025-01-31 19:17 ` [PATCH 11/15] math: Use atanpif " Adhemerval Zanella
2025-02-03 7:09 ` Paul Zimmermann
2025-02-10 22:29 ` DJ Delorie
2025-02-11 14:07 ` Adhemerval Zanella Netto
2025-02-11 14:22 ` Paul Zimmermann
2025-02-11 20:01 ` DJ Delorie
2025-02-11 20:10 ` Adhemerval Zanella Netto
2025-01-31 19:17 ` [PATCH 12/15] math: Use cospif " Adhemerval Zanella
2025-02-03 7:16 ` Paul Zimmermann
2025-02-10 23:07 ` DJ Delorie
2025-01-31 19:17 ` [PATCH 13/15] math: Use sinpif " Adhemerval Zanella
2025-02-03 10:39 ` Paul Zimmermann
2025-02-11 0:56 ` DJ Delorie
2025-01-31 19:17 ` [PATCH 14/15] math: Use tanpif " Adhemerval Zanella
2025-02-03 11:05 ` Paul Zimmermann
2025-02-11 1:15 ` DJ Delorie
2025-02-11 14:09 ` Adhemerval Zanella Netto
2025-01-31 19:17 ` [PATCH 15/15] x86_64: Add asinpif with FMA Adhemerval Zanella
2025-01-31 22:59 ` Noah Goldstein
2025-02-11 1:31 ` DJ Delorie
2025-02-11 14:12 ` Adhemerval Zanella Netto
2025-02-11 20:13 ` Adhemerval Zanella Netto
2025-02-12 11:00 ` Adhemerval Zanella Netto
2025-02-01 8:14 ` 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=p9u0y0yqgjyi.fsf@araignee.loria.fr \
--to=paul.zimmermann@inria.fr \
--cc=adhemerval.zanella@linaro.org \
--cc=dj@redhat.com \
--cc=josmyers@redhat.com \
--cc=libc-alpha@sourceware.org \
--cc=sibid@uvic.ca \
/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).