Go to file
Adhemerval Zanella f338c7c5f5 math: Use log10p1f from CORE-MATH
The CORE-MATH implementation is correctly rounded (for any rounding mode)
and shows slight better performance to the generic log10p1f.

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 (M1,
gcc 13.2.1), and powerpc (POWER10, gcc 13.2.1):

Latency                      master        patched   improvement
x86_64                      68.5251        32.2627        52.92%
x86_64v2                    68.8912        32.7887        52.41%
x86_64v3                    59.3427        27.0521        54.41%
i686                        162.026        103.383        36.19%
aarch64                     26.8513        14.5695        45.74%
power10                     12.7426         8.4929        33.35%
powerpc                     16.6768        9.29135        44.29%

reciprocal-throughput        master        patched   improvement
x86_64                      26.0969        12.4023        52.48%
x86_64v2                    25.0045        11.0748        55.71%
x86_64v3                    20.5610        10.2995        49.91%
i686                        89.8842        78.5211        12.64%
aarch64                     17.1200         9.4832        44.61%
power10                      6.7814         6.4258         5.24%
powerpc                      15.769         7.6825        51.28%

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:40 -03:00
advisories
argp
assert
benchtests benchtests: Add log10p1f benchmark 2024-11-01 11:17:20 -03:00
bits
catgets
ChangeLog.old
conform Disable _TIME_BITS if the compiler defaults to it 2024-10-01 08:44:41 -03:00
csu
ctype
debug stdlib: Make abort/_Exit AS-safe (BZ 26275) 2024-10-08 14:40:12 -03:00
dirent
dlfcn
elf Revert "elf: Run constructors on cyclic recursive dlopen (bug 31986)" 2024-10-28 14:45:30 +01:00
gmon
gnulib
hesiod
htl
hurd
iconv
iconvdata
include stdlib: Make abort/_Exit AS-safe (BZ 26275) 2024-10-08 14:40:12 -03:00
inet Add IPPROTO_SMC from Linux 6.11 to netinet/in.h 2024-10-10 10:28:04 -03:00
intl locale: Fix some spelling typos 2024-10-14 15:38:26 +01:00
io linux: Update stat-generic.h with linux 6.11 2024-10-10 10:27:58 -03:00
libio libio: Fix crash in fputws [BZ #20632] 2024-10-25 15:05:06 -03:00
locale locale: Fix some spelling typos 2024-10-14 15:38:26 +01:00
localedata Enable transliteration rules with two input characters in scn_IT [BZ #32280] 2024-10-16 17:15:39 +02:00
login
mach
malloc
manual Document further requirement on mixing streams / file descriptors 2024-10-28 22:22:26 +00:00
math replace tgammaf by the CORE-MATH implementation 2024-10-11 11:12:32 +02:00
mathvec
misc misc: Add support for Linux uio.h RWF_ATOMIC flag 2024-10-10 10:28:01 -03:00
nis
nptl Add more tests of pthread attributes initial values 2024-10-29 17:35:21 +00:00
nptl_db
nscd
nss
po
posix libio: Fix a deadlock after fork in popen 2024-10-23 13:40:16 +02:00
resolv
resource
rt rt: more clock_nanosleep tests addendum 2024-10-08 14:30:21 -04:00
scripts Use Linux 6.11 in build-many-glibcs.py 2024-10-10 10:27:47 -03:00
setjmp
signal stdlib: Make abort/_Exit AS-safe (BZ 26275) 2024-10-08 14:40:12 -03:00
socket
soft-fp
stdio-common stdio-common: Fix scanf parsing for NaN types [BZ #30647] 2024-10-25 15:05:06 -03:00
stdlib stdlib: Make abort/_Exit AS-safe (BZ 26275) 2024-10-08 14:40:12 -03:00
string
sunrpc
support support: Make support_process_state_wait return the found state 2024-10-16 14:32:28 -03:00
sysdeps math: Use log10p1f from CORE-MATH 2024-11-01 11:27:40 -03:00
sysvipc
termios
time Link tst-clock_gettime with $(librt) 2024-10-31 17:43:52 +00:00
timezone
wcsmbs Do not use -Wp to disable fortify (BZ 31928) 2024-10-01 08:44:40 -03:00
wctype
.b4-config Add .b4-config file 2024-10-21 14:26:42 +01:00
.clang-format
.gitattributes
.gitignore
abi-tags
aclocal.m4
config.h.in
config.make.in
configure Disable _TIME_BITS if the compiler defaults to it 2024-10-01 08:44:41 -03:00
configure.ac Disable _TIME_BITS if the compiler defaults to it 2024-10-01 08:44:41 -03:00
CONTRIBUTED-BY
COPYING
COPYING.LIB
extra-lib.mk
gen-locales.mk
INSTALL
libc-abis
libof-iterator.mk
LICENSES
MAINTAINERS
Makeconfig Disable _TIME_BITS if the compiler defaults to it 2024-10-01 08:44:41 -03:00
Makefile
Makefile.help
Makefile.in
Makerules
NEWS stdlib: Make abort/_Exit AS-safe (BZ 26275) 2024-10-08 14:40:12 -03:00
o-iterator.mk
README
Rules
SECURITY.md
SHARED-FILES math: Use log10p1f from CORE-MATH 2024-11-01 11:27:40 -03:00
shlib-versions
test-skeleton.c
version.h

This directory contains the sources of the GNU C Library.
See the file "version.h" for what release version you have.

The GNU C Library is the standard system C library for all GNU systems,
and is an important part of what makes up a GNU system.  It provides the
system API for all programs written in C and C-compatible languages such
as C++ and Objective C; the runtime facilities of other programming
languages use the C library to access the underlying operating system.

In GNU/Linux systems, the C library works with the Linux kernel to
implement the operating system behavior seen by user applications.
In GNU/Hurd systems, it works with a microkernel and Hurd servers.

The GNU C Library implements much of the POSIX.1 functionality in the
GNU/Hurd system, using configurations i[4567]86-*-gnu and x86_64-gnu.

When working with Linux kernels, this version of the GNU C Library
requires Linux kernel version 3.2 or later.

Also note that the shared version of the libgcc_s library must be
installed for the pthread library to work correctly.

The GNU C Library supports these configurations for using Linux kernels:

	aarch64*-*-linux-gnu
	alpha*-*-linux-gnu
	arc*-*-linux-gnu
	arm-*-linux-gnueabi
	csky-*-linux-gnuabiv2
	hppa-*-linux-gnu
	i[4567]86-*-linux-gnu
	x86_64-*-linux-gnu	Can build either x86_64 or x32
	loongarch64-*-linux-gnu Hardware floating point, LE only.
	m68k-*-linux-gnu
	microblaze*-*-linux-gnu
	mips-*-linux-gnu
	mips64-*-linux-gnu
	or1k-*-linux-gnu
	powerpc-*-linux-gnu	Hardware or software floating point, BE only.
	powerpc64*-*-linux-gnu	Big-endian and little-endian.
	s390-*-linux-gnu
	s390x-*-linux-gnu
	riscv32-*-linux-gnu
	riscv64-*-linux-gnu
	sh[34]-*-linux-gnu
	sparc*-*-linux-gnu
	sparc64*-*-linux-gnu

If you are interested in doing a port, please contact the glibc
maintainers; see https://www.gnu.org/software/libc/ for more
information.

See the file INSTALL to find out how to configure, build, and install
the GNU C Library.  You might also consider reading the WWW pages for
the C library at https://www.gnu.org/software/libc/.

The GNU C Library is (almost) completely documented by the Texinfo manual
found in the `manual/' subdirectory.  The manual is still being updated
and contains some known errors and omissions; we regret that we do not
have the resources to work on the manual as much as we would like.  For
corrections to the manual, please file a bug in the `manual' component,
following the bug-reporting instructions below.  Please be sure to check
the manual in the current development sources to see if your problem has
already been corrected.

Please see https://www.gnu.org/software/libc/bugs.html for bug reporting
information.  We are now using the Bugzilla system to track all bug reports.
This web page gives detailed information on how to report bugs properly.

The GNU C Library is free software.  See the file COPYING.LIB for copying
conditions, and LICENSES for notices about a few contributions that require
these additional notices to be distributed.  License copyright years may be
listed using range notation, e.g., 1996-2015, indicating that every year in
the range, inclusive, is a copyrightable year that would otherwise be listed
individually.