]> git.ipfire.org Git - thirdparty/coreutils.git/commit
factor: remove wide_uuint
authorPaul Eggert <eggert@cs.ucla.edu>
Sun, 1 Jun 2025 23:18:09 +0000 (16:18 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Thu, 10 Jul 2025 00:12:39 +0000 (17:12 -0700)
commite7c1abfe79f1c827aeb010ac37a22305c2d96b5a
tree3f4334a015765e810a93ce377b9c64a59ab18cc8
parentd6ee61e407b0cfd6252a1b0bea3aef4d887dba5f
factor: remove wide_uuint

Simplify by using GMP’s word type instead of pretending to roll our own.
* src/factor.c (wide_uuint): Remove.  All uses replaced by mp_limb_t.
(umul_ppmm) [!umul_ppmm]: Don’t assume unsigned long is at least half
as wide as mp_limb_t.  This simpler anyway.
(strtouuint): Rename from strto2wide_uint.  All uses changed.
src/factor.c
src/make-prime-list.c