Go to file
Adhemerval Zanella 476e962af7 Add gmp-arch and udiv_qrnnd
To enable “longlong.h” removal, the udiv_qrnnd is moved to a gmp-arch.h
file.  It allows each architecture to implement its own arch-specific
optimizations.  The generic implementation now uses a static inline,
which provides better type checking than the GNU extension to cast the
asm constraint (and it works better with clang).

Most of the architecture uses the generic implementation, which is
expanded from a macro, except for alpha, x86, m68k, sh, and sparc.
I kept that alpha, which uses out-of-the-line implementations and x86,
where there is no easy way to use the div{q} instruction from C code.
For the rest, the compiler generates good enough code.

The hppa also provides arch-specific implementations, but they are not
routed in “longlong.h” and thus never used.

Reviewed-by: Wilco Dijkstra  <Wilco.Dijkstra@arm.com>
2025-11-25 14:52:15 -03:00
ChangeLog.old
advisories
argp
assert
benchtests benchtests: Fix bench-build after cd748a63ab 2025-11-21 13:22:34 -03:00
bits
catgets
conform
csu
ctype
debug Enable --enable-fortify-source with clang 2025-11-21 13:13:11 -03:00
dirent
dlfcn
elf htl: Fix conditions for thread list variables 2025-11-22 21:55:02 +01:00
gmon
gnulib
hesiod
htl htl: move c11 symbols into libc. 2025-11-22 03:28:48 +01:00
hurd htl: move pthread_create to into libc 2025-11-17 00:38:37 +00:00
iconv Add missing $(rpath-link) to /elf/ld.so --library-path 2025-11-08 17:44:48 +01:00
iconvdata Add missing $(rpath-link) to /elf/ld.so --library-path 2025-11-08 17:44:48 +01:00
include pthread: Simplify condition for hidden proto 2025-11-22 21:55:02 +01:00
inet Enable --enable-fortify-source with clang 2025-11-21 13:13:11 -03:00
intl
io Use __fstat64_time64 in __fts64_children_time64 (bug 33653) 2025-11-20 14:33:59 +01:00
libio Enable --enable-fortify-source with clang 2025-11-21 13:13:11 -03:00
locale Add missing $(rpath-link) to /elf/ld.so --library-path 2025-11-08 17:44:48 +01:00
localedata
login
mach hurd: Drop remnants of cthreads 2025-11-12 01:11:11 +01:00
malloc malloc: Add threaded variants of single-threaded malloc tests 2025-11-24 16:47:52 +01:00
manual Implement C23 const-preserving standard library macros 2025-11-20 19:31:04 +00:00
math configure: Only use -fno-fp-int-builtin-inexact if compiler supports it 2025-11-21 13:13:10 -03:00
mathvec
misc Enable --enable-fortify-source with clang 2025-11-21 13:13:11 -03:00
nis
nptl nptl: Replace FALLTHROUGH with [[fallthrough]] 2025-11-20 14:23:43 -03:00
nptl_db
nscd
nss nss: Remove effectively unused __nss_*_database variables 2025-11-18 20:18:06 +01:00
po
posix posix: execvpe: fix UMR with file > NAME_MAX [BZ #33627] 2025-11-17 11:57:07 -08:00
resolv
resource
rt
scripts scripts: Fix minor lint warnings in build-many-glibcs.py 2025-11-25 13:56:56 +00:00
setjmp
signal
socket
soft-fp Add gmp-arch and udiv_qrnnd 2025-11-25 14:52:15 -03:00
stdio-common Add gmp-arch and udiv_qrnnd 2025-11-25 14:52:15 -03:00
stdlib Add gmp-arch and udiv_qrnnd 2025-11-25 14:52:15 -03:00
string Enable --enable-fortify-source with clang 2025-11-21 13:13:11 -03:00
sunrpc nss: Clean up function pointer/void * unions 2025-11-18 08:35:44 +01:00
support support: Add support for running tests in a multi-threaded environment 2025-11-24 16:47:52 +01:00
sysdeps Add gmp-arch and udiv_qrnnd 2025-11-25 14:52:15 -03:00
sysvipc
termios
time
timezone Implement C23 const-preserving standard library macros 2025-11-20 19:31:04 +00:00
wcsmbs Implement C23 const-preserving standard library macros 2025-11-20 19:31:04 +00:00
wctype
.b4-config
.clang-format
.gitattributes
.gitignore
CONTRIBUTED-BY
COPYING.LESSERv2 Update COPYING, COPYING.LIB from gnulib, using gnulib file names 2025-11-17 11:15:13 +01:00
COPYING.LIB Update COPYING, COPYING.LIB from gnulib, using gnulib file names 2025-11-17 11:15:13 +01:00
COPYINGv2 Update COPYING, COPYING.LIB from gnulib, using gnulib file names 2025-11-17 11:15:13 +01:00
COPYINGv3 Add COPYINGv3 with the GPL version 3 text 2025-11-17 11:15:13 +01:00
INSTALL
LICENSES
MAINTAINERS
Makeconfig
Makefile
Makefile.help
Makefile.in
Makerules Check if linker supports -Wl,--undefined-version 2025-11-20 14:33:13 -03:00
NEWS Add new math improvemenst to NEWS 2025-11-25 14:51:56 -03:00
README
Rules
SECURITY.md
SHARED-FILES math: Sync atanh from CORE-MATH 2025-11-19 15:21:44 -03:00
abi-tags
aclocal.m4
config.h.in Revert __HAVE_64B_ATOMICS configure check 2025-11-14 14:05:20 -03:00
config.make.in
configure configure: Only use -fno-fp-int-builtin-inexact if compiler supports it 2025-11-21 13:13:10 -03:00
configure.ac configure: Only use -fno-fp-int-builtin-inexact if compiler supports it 2025-11-21 13:13:10 -03:00
extra-lib.mk
gen-locales.mk
libc-abis
libof-iterator.mk
o-iterator.mk
shlib-versions
test-skeleton.c
version.h

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.