glibc/sysdeps
Adhemerval Zanella a357d6273f math: Use atanf from CORE-MATH
The CORE-MATH implementation is correctly rounded (for any rounding mode)
and shows slight better performance to the generic atanf.

The code was adapted to glibc style and to use the definition of
math_config.h (to handle errno, overflow, and underflow).

Benchtest on x64_64 (Ryzen 9 5900X, gcc 14.2.1), aarch64 (Neoverse-N1,
gcc 13.3.1), and powerpc (POWER10, gcc 13.2.1):

Latency                      master        patched   improvement
x86_64                      56.8265        53.6842         5.53%
x86_64v2                    54.8177        53.6842         2.07%
x86_64v3                    46.2915        48.7034        -5.21%
i686                       158.3760        108.9560       31.20%
aarch64 (Neoverse)           21.687        20.5893         5.06%
power10                     13.1903        13.5012        -2.36%

reciprocal-throughput        master        patched   improvement
x86_64                      16.6787        16.7601        -0.49%
x86_64v2                    16.6983        16.7601        -0.37%
x86_64v3                    16.2268        12.1391        25.19%
i686                       138.6840        36.0640        74.00%
aarch64 (Neoverse)          11.8012        10.3565        12.24%
power10                      5.3212         4.2894        19.39%

Signed-off-by: Alexei Sibidanov <sibid@uvic.ca>
Signed-off-by: Paul Zimmermann <Paul.Zimmermann@inria.fr>
Signed-off-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Reviewed-by: DJ Delorie <dj@redhat.com>
2024-12-18 17:24:43 -03:00
..
aarch64 math: Use atanf from CORE-MATH 2024-12-18 17:24:43 -03:00
alpha math: Use atanf from CORE-MATH 2024-12-18 17:24:43 -03:00
arc math: Use atanf from CORE-MATH 2024-12-18 17:24:43 -03:00
arm math: Use atanf from CORE-MATH 2024-12-18 17:24:43 -03:00
csky math: Use atanf from CORE-MATH 2024-12-18 17:24:43 -03:00
generic malloc: Optimize small memory clearing for calloc 2024-12-04 04:28:15 +08:00
gnu sysdeps: Re-flow and sort multiline gnu/Makefile definitions 2024-08-07 11:02:03 -03:00
hppa math: Use atanf from CORE-MATH 2024-12-18 17:24:43 -03:00
htl htl: move pthread_sigmask into libc. 2024-12-14 23:13:14 +01:00
hurd hurd: Move internal functions to internal header 2024-03-23 22:43:07 +01:00
i386 math: Use atanf from CORE-MATH 2024-12-18 17:24:43 -03:00
ieee754 math: Use atanf from CORE-MATH 2024-12-18 17:24:43 -03:00
loongarch math: Use atanf from CORE-MATH 2024-12-18 17:24:43 -03:00
m68k math: Use asinhf from CORE-MATH 2024-12-18 17:24:43 -03:00
mach htl: move pthread_sigmask into libc. 2024-12-14 23:13:14 +01:00
microblaze math: Use atanf from CORE-MATH 2024-12-18 17:24:43 -03:00
mips math: Use atanf from CORE-MATH 2024-12-18 17:24:43 -03:00
nptl linux: Add support for getrandom vDSO 2024-11-12 14:42:12 -03:00
or1k math: Use atanf from CORE-MATH 2024-12-18 17:24:43 -03:00
posix Silence most -Wzero-as-null-pointer-constant diagnostics 2024-11-25 16:45:59 -03:00
powerpc math: Use atanf from CORE-MATH 2024-12-18 17:24:43 -03:00
pthread Use empty initializer to silence GCC 4.9 or older 2024-12-16 04:06:30 +08:00
riscv math: Use atanf from CORE-MATH 2024-12-18 17:24:43 -03:00
s390 math: Use atanf from CORE-MATH 2024-12-18 17:24:43 -03:00
sh math: Use atanf from CORE-MATH 2024-12-18 17:24:43 -03:00
sparc math: Use atanf from CORE-MATH 2024-12-18 17:24:43 -03:00
unix Update syscall lists for Linux 6.12 2024-12-18 15:12:36 +00:00
wordsize-32 Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
wordsize-64 Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
x86 sys/platform/x86.h: Do not depend on _Bool definition in C++ mode 2024-12-18 02:32:27 +08:00
x86_64 math: Use atanf from CORE-MATH 2024-12-18 17:24:43 -03:00