]> git.feebdaed.xyz Git - 0xmirror/glibc.git/commit
Add umul_ppmm to gmp-arch.hdoc
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>
Thu, 20 Nov 2025 18:30:07 +0000 (15:30 -0300)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Wed, 26 Nov 2025 13:10:06 +0000 (10:10 -0300)
commit7a0471f1497a762f7d2149c4dc9570ef6c84a851
tree3935d47318251b40c71f317ffe171b7d43a80fe8
parent8cd6efca5b3796193ef3ff60d9dbf6e5572b2b73
Add umul_ppmm to gmp-arch.hdoc

To enable “longlong.h” removal, the umul_ppmm is moved to a gmp-arch.h.
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, arm, hppa, x86, m68k, mips,
powerpc, and sparc.  The 32 bit architectures the compiler generates
good enough code using uint64_t types, where for 64 bit architecture
the patch leverages the math_u128.h definitions that uses 128-bit
integers when available (all 64 bit architectures on gcc 15).

Reviewed-by: Wilco Dijkstra <Wilco.Dijkstra@arm.com>
sysdeps/generic/gmp-arch.h