glibc/sysdeps/alpha
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
..
alphaev5 Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
alphaev6 Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
alphaev67 Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
bits Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
fpu math: Remove ldbl-128/s_fma.c 2025-11-12 18:57:29 +00:00
nptl Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
Implies
Makefile Add gmp-arch and udiv_qrnnd 2025-11-25 14:52:15 -03:00
Subdirs
Versions
__longjmp.S Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
_mcount.S Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
add_n.S Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
addmul_1.S Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
atomic-machine.h Revert __HAVE_64B_ATOMICS configure check 2025-11-14 14:05:20 -03:00
bsd-_setjmp.S
bsd-setjmp.S
configure configure: Use autoconf 2.71 2023-07-17 10:08:10 -04:00
configure.ac elf: Replace PI_STATIC_AND_HIDDEN with opposite HIDDEN_VAR_NEEDS_DYNAMIC_RELOC 2022-04-26 09:26:22 -07:00
crti.S Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
crtn.S Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
div.S Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
div_libc.h Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
divl.S Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
divlu.S
divq.S Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
divqu.S Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
dl-dtprocnum.h
dl-machine.h Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
dl-trampoline.S Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
e_sqrtl.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
elf-initfini.h Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
fix-fp-int-convert-overflow.h alpha: Fix missing inexact-flag raising for lround/lrint 2025-09-11 14:48:00 -03:00
gccframe.h Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
gmp-arch.h Add gmp-arch and udiv_qrnnd 2025-11-25 14:52:15 -03:00
hp-timing.h Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
jmpbuf-offsets.h Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
jmpbuf-unwind.h Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
ldiv.S Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
ldsodefs.h Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
libc-tls.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
lldiv.S
local-soft-fp.h
lshift.S Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
machine-gmon.h Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
math-use-builtins-ffs.h string: Use builtins for ffs and ffsll 2024-02-01 09:31:33 -03:00
memchr.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
memset.S Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
mul_1.S Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
nscd-types.h Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
ots_add.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
ots_cmp.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
ots_cmpe.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
ots_cvtqux.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
ots_cvtqx.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
ots_cvttx.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
ots_cvtxq.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
ots_cvtxt.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
ots_div.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
ots_mul.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
ots_nintxq.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
ots_sub.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
preconfigure
rawmemchr.S Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
reml.S Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
remlu.S
remq.S Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
remqu.S Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
rshift.S Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
setjmp.S Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
sfp-machine.h Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
sotruss-lib.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
stackinfo.h elf: early conversion of elf p_flags to mprotect flags 2025-08-27 10:45:45 -03:00
start.S Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
stpcpy.S Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
stpncpy.S Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
strcat.S Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
strchr.S Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
strcmp.S Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
strcpy.S Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
string-fza.h Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
string-fzb.h Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
string-fzi.h Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
string-shift.h Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
strlen.S Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
strncat.S Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
strncpy.S Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
strrchr.S Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
stxcpy.S Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
stxncpy.S Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
sub_n.S Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
submul_1.S Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
tininess.h
tst-audit.h Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
tst-file-align.h Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
udiv_qrnnd.S Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
unwind-arch.h Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00