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

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                      49.9017        33.5143        32.84%
x86_64v2                    50.4878        33.5623        33.52%
x86_64v3                    50.0991        27.6078        44.89%
i686                        140.874        106.086        24.69%
aarch64                     19.2846        11.3573        41.11%
power10                     14.0994        7.7739        44.86%
powerpc                     14.2898        7.92497        44.54%

reciprocal-throughput        master        patched   improvement
x86_64                      17.8336        12.9074        27.62%
x86_64v2                    16.4418        11.3220        31.14%
x86_64v3                    15.6002        10.5158        32.59%
i686                        66.0678        80.2287        -21.43%
aarch64                      9.4906        6.8393        27.94%
power10                      7.5255        5.5084        26.80%
powerpc                      9.5204        6.98055        26.68%

The performance decrease for i686 is mostly due the use of x87 fpu,
when building with '-msse2 -mfpmath=sse':

                             master        patched   improvement
latency                     140.874        77.1137        45.26%
reciprocal-throughput        64.481        56.4397        12.47%

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-11-01 11:27:39 -03:00
..
aarch64 math: Use expm1f from CORE-MATH 2024-11-01 11:27:35 -03:00
alpha math: Use expm1f from CORE-MATH 2024-11-01 11:27:35 -03:00
arc math: Use expm1f from CORE-MATH 2024-11-01 11:27:35 -03:00
arm math: Use expm1f from CORE-MATH 2024-11-01 11:27:35 -03:00
csky math: Use expm1f from CORE-MATH 2024-11-01 11:27:35 -03:00
generic stdlib: Make abort/_Exit AS-safe (BZ 26275) 2024-10-08 14:40:12 -03:00
gnu sysdeps: Re-flow and sort multiline gnu/Makefile definitions 2024-08-07 11:02:03 -03:00
hppa math: Use expm1f from CORE-MATH 2024-11-01 11:27:35 -03:00
htl stdlib: Make abort/_Exit AS-safe (BZ 26275) 2024-10-08 14:40:12 -03:00
hurd hurd: Move internal functions to internal header 2024-03-23 22:43:07 +01:00
i386 math: Use log10f from CORE-MATH 2024-11-01 11:27:39 -03:00
ieee754 math: Use log10f from CORE-MATH 2024-11-01 11:27:39 -03:00
loongarch math: Use expm1f from CORE-MATH 2024-11-01 11:27:35 -03:00
m68k math: Use exp2m1f from CORE-MATH 2024-11-01 11:27:35 -03:00
mach Fix header guard in sysdeps/mach/hurd/x86_64/vm_param.h 2024-10-09 19:16:53 +02:00
microblaze math: Use expm1f from CORE-MATH 2024-11-01 11:27:35 -03:00
mips math: Use expm1f from CORE-MATH 2024-11-01 11:27:35 -03:00
nios2 math: Use expm1f from CORE-MATH 2024-11-01 11:27:35 -03:00
nptl stdlib: Make abort/_Exit AS-safe (BZ 26275) 2024-10-08 14:40:12 -03:00
or1k math: Use expm1f from CORE-MATH 2024-11-01 11:27:35 -03:00
posix stdlib: Make abort/_Exit AS-safe (BZ 26275) 2024-10-08 14:40:12 -03:00
powerpc math: Use expm1f from CORE-MATH 2024-11-01 11:27:35 -03:00
pthread Add more tests of pthread_mutexattr_gettype and pthread_mutexattr_settype 2024-10-23 16:45:15 +00:00
riscv math: Use expm1f from CORE-MATH 2024-11-01 11:27:35 -03:00
s390 math: Use expm1f from CORE-MATH 2024-11-01 11:27:35 -03:00
sh math: Use expm1f from CORE-MATH 2024-11-01 11:27:35 -03:00
sparc math: Use expm1f from CORE-MATH 2024-11-01 11:27:35 -03:00
unix LoongArch: Add RSEQ_SIG in rseq.h. 2024-11-01 10:41:20 +08: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 x86: Enable non-temporal memset for Hygon processors 2024-08-26 10:01:58 -07:00
x86_64 math: Use expm1f from CORE-MATH 2024-11-01 11:27:35 -03:00