]> git.ipfire.org Git - thirdparty/coreutils.git/commit
factor: speed up umul_ppmm when !USE_LONGLONG_H
authorPaul Eggert <eggert@cs.ucla.edu>
Sat, 5 Jul 2025 18:04:54 +0000 (11:04 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Thu, 10 Jul 2025 00:12:40 +0000 (17:12 -0700)
commitd70e07668ca92b812ea31d0fd21f0bace4edeef8
treeb33cd990515dacbec6427b479d40f2692d91afe6
parente16d3f38f3d89b0db59c4e4545503680d4e47b56
factor: speed up umul_ppmm when !USE_LONGLONG_H

* src/factor.c (umul_ppmm): When !USE_LONGLONG_H so we need to
define this, speed things up if there is an unsigned type uuroom_t
wide enough to hold two words.  Do not make a similar change for
udiv_qrnnd, as it is not performance critical and anyway on GCC 15
x86-64 that would mean a subroutine call.
src/factor.c