[PATCH v3 04/19] Add umul_ppmm to gmp-arch.hdoc

Collin Funk collin.funk1@gmail.com
Sat Nov 1 18:23:40 GMT 2025


Adhemerval Zanella <adhemerval.zanella@linaro.org> writes:

> 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.  I kept only x86 optimization, where there is no
> easy way to emit mul{q}. For the rest, the compiler generates good
> enough code.
> ---
>  sysdeps/generic/gmp-arch.h | 40 ++++++++++++++++++++++++++++++++++++++
>  sysdeps/x86/gmp-arch.h     | 21 ++++++++++++++++++++
>  2 files changed, 61 insertions(+)

Reviewed-by: Collin Funk <collin.funk1@gmail.com>

Collin


More information about the Libc-alpha mailing list