Go to file
Adhemerval Zanella 0e1a1178ee math: Remove the SVID error handling from remainder
The optimized i386 version is faster than the generic one, and
gcc implements it through the builtin. This optimization enables
us to migrate the implementation to a C version.  The performance
on a Zen3 chip is similar to the SVID one.

The m68k provided an optimized version through __m81_u(remainderf)
(mathimpl.h), and gcc does not implement it through a builtin
(different than i386).

Performance improves a bit on x86_64 (Zen3, gcc 15.2.1):

reciprocal-throughput           input    master   NO-SVID  improvement
x86_64                     subnormals   18.8522   16.2506       13.80%
x86_64                         normal  421.8260  403.9270        4.24%
x86_64                 close-exponent   21.0579   18.7642       10.89%
i686                       subnormals   21.3443   21.4229       -0.37%
i686                           normal  525.8380   538.807       -2.47%
i686                   close-exponent   21.6589   21.7983       -0.64%

Tested on x86_64-linux-gnu and i686-linux-gnu.

Reviewed-by: Wilco Dijkstra  <Wilco.Dijkstra@arm.com>
2025-11-04 04:14:01 -03:00
ChangeLog.old Create ChangeLog.old/ChangeLog.31 2025-07-28 20:22:55 +02:00
advisories advisories: s/CVE-id/CVE-Id/ (the lowercase i breaks our tooling) 2025-07-26 15:21:27 +02:00
argp argp: Move attribute_hidden to argp-fmtstream.h 2025-10-29 12:54:00 -03:00
assert Support assert as a variadic macro for C23 2025-11-03 19:56:42 +00:00
benchtests plot_strings.py: Replace np.complex with complex 2025-10-22 07:52:54 +08:00
bits Add once_flag, ONCE_FLAG_INIT and call_once to stdlib.h for C23 2025-10-01 15:15:15 +00:00
catgets catgets: Remove catgets/config.h 2025-10-21 09:24:19 -03:00
conform linknamespace: Use 'ALLOWLIST' instead of 'WHITELIST' in code. 2025-05-21 12:47:49 -04:00
csu elf: Build dl-tls.o with early startup symbol redirections 2025-02-05 09:52:16 +01:00
ctype Use TLS initial-exec model for __libc_tsd_CTYPE_* thread variables [BZ #33234] 2025-08-05 13:06:12 +02:00
debug Fix incorrect setrlimit return value checks in tests 2025-10-28 18:51:51 -07:00
dirent
dlfcn elf: Add SFrame support to _dl_find_object function 2025-07-14 10:56:35 +01:00
elf tls: Add debug logging for TLS and TCB management 2025-11-03 10:47:28 +01:00
gmon gmon: Only used -fno-tree-loop-distribute-patterns if compiler supports it 2025-10-21 09:27:01 -03:00
gnulib
hesiod
htl htl: move sem_unlink into libc. 2025-08-18 01:06:41 +02:00
hurd Suppress -Wmaybe-uninitialized only for gcc 2025-10-21 09:24:05 -03:00
iconv Annotate swtich fall-through 2025-10-29 12:54:01 -03:00
iconvdata Annotate swtich fall-through 2025-10-29 12:54:01 -03:00
include nptl: Remove ATOMIC_EXCHANGE_USES_CAS usage 2025-11-04 04:14:01 -03:00
inet Annotate swtich fall-through 2025-10-29 12:54:01 -03:00
intl Annotate swtich fall-through 2025-10-29 12:54:01 -03:00
io Fix incorrect setrlimit return value checks in tests 2025-10-28 18:51:51 -07:00
libio libio: Add terminating NUL when the first character is EOF in getdelim [BZ #28038] 2025-10-09 17:38:01 -07:00
locale Cleanup some recently added whitespace. 2025-10-30 18:56:58 -07:00
localedata tests-mbwc/tst_funcs.h: Fix typo 2025-10-01 14:49:10 -03:00
login login: fix ut_line comparison logic 2025-08-29 14:49:19 -04:00
mach hurd: Make __getrandom_early_init call __mach_init 2025-06-09 08:34:06 +00:00
malloc Cleanup some recently added whitespace. 2025-10-30 18:56:58 -07:00
manual docs: Add dynamic linker environment variable docs 2025-11-03 10:47:56 +01:00
math math: Remove the SVID error handling from remainder 2025-11-04 04:14:01 -03:00
mathvec
misc cdefs: allow __attribute__ on tcc 2025-10-30 20:03:00 -07:00
nis Cleanup some recently added whitespace. 2025-10-30 18:56:58 -07:00
nptl nptl: Remove ATOMIC_EXCHANGE_USES_CAS usage 2025-11-04 04:14:01 -03:00
nptl_db Suppress -Wmaybe-uninitialized only for gcc 2025-10-21 09:24:05 -03:00
nscd atomic: Remove atomic_forced_read 2025-10-08 12:59:30 +00:00
nss Cleanup some recently added whitespace. 2025-10-30 18:56:58 -07:00
po po: Update swedish translations 2025-07-25 19:31:37 +02:00
posix Cleanup some recently added whitespace. 2025-10-30 18:56:58 -07:00
resolv Cleanup some recently added whitespace. 2025-10-30 18:56:58 -07:00
resource resource/Makefile: Split and sort tests 2025-06-19 13:33:34 +02:00
rt aio_suspend64: Fix clock discrepancy [BZ #32795] 2025-03-25 01:05:11 +01:00
scripts Use Linux 6.17 in build-many-glibcs.py 2025-10-01 15:15:43 +00:00
setjmp
signal
socket socket/tst-cmsghdr: Fix alignment of cmsghdr 2025-01-12 15:57:26 +01:00
soft-fp
stdio-common Cleanup some recently added whitespace. 2025-10-30 18:56:58 -07:00
stdlib Replace count_leading_zeros with stdc_leading_zeros 2025-10-29 12:53:55 -03:00
string Suppress -Wmaybe-uninitialized only for gcc 2025-10-21 09:24:05 -03:00
sunrpc Cleanup some recently added whitespace. 2025-10-30 18:56:58 -07:00
support Fix incorrect setrlimit return value checks in tests 2025-10-28 18:51:51 -07:00
sysdeps math: Remove the SVID error handling from remainder 2025-11-04 04:14:01 -03:00
sysvipc
termios termios: SPEED_MAX and BAUD_MAX constants 2025-07-20 17:17:41 +02:00
time Cleanup some recently added whitespace. 2025-10-30 18:56:58 -07:00
timezone configure: Use -Wno-maybe-uninitialized iff compiler supports it 2025-10-21 09:24:03 -03:00
wcsmbs
wctype
.b4-config
.clang-format
.gitattributes
.gitignore
CONTRIBUTED-BY
COPYING
COPYING.LIB
INSTALL INSTALL: Update newest tested binutils version 2025-07-28 16:49:01 +02:00
LICENSES LICENSES: update CORE-MATH copyright 2025-01-24 23:21:49 +01:00
MAINTAINERS
Makeconfig Build glibc with -ftrapping-math 2025-10-20 11:33:54 -03:00
Makefile Makefile: Add ld.so.conf with libgcc dir to testroot.pristine 2025-07-09 15:46:14 +02:00
Makefile.help
Makefile.in Remove test-have-mamx-tile from Makefile.in 2025-08-23 15:58:00 -07:00
Makerules Enable --no-undefined-version by default 2025-10-29 12:54:06 -03:00
NEWS Support assert as a variadic macro for C23 2025-11-03 19:56:42 +00:00
README
Rules Build programs in $(others-noinstall) like tests if libgcc_s is available 2025-11-04 14:48:18 +08:00
SECURITY.md
SHARED-FILES include: Sync gnulib intprops 2025-10-29 12:53:50 -03:00
abi-tags
aclocal.m4 x86: Set have-protected-data to no if unsupported 2025-08-22 17:55:32 -07:00
config.h.in Define __HAVE_64B_ATOMICS from compiler support 2025-11-04 04:14:01 -03:00
config.make.in Disable SFrame support by default 2025-07-24 15:51:58 -03:00
configure Define __HAVE_64B_ATOMICS from compiler support 2025-11-04 04:14:01 -03:00
configure.ac Define __HAVE_64B_ATOMICS from compiler support 2025-11-04 04:14:01 -03:00
extra-lib.mk
gen-locales.mk
libc-abis
libof-iterator.mk
o-iterator.mk
shlib-versions
test-skeleton.c
version.h Bump version to 2.42.9000 2025-07-28 20:31:31 +02:00

README

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.