]> git.ipfire.org Git - thirdparty/coreutils.git/commit
factor: improve millerrabin2 API
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 1 Jul 2025 02:05:55 +0000 (19:05 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Thu, 10 Jul 2025 00:12:40 +0000 (17:12 -0700)
commit097760c3de664b228b451be394784946f1c7c25b
tree031678f9594ec64fcaec49b441d7cae3f694b823
parentd3db83b879400c82cfb19a5af181ee854c209967
factor: improve millerrabin2 API

* src/factor.c (make_uuint2): New function.
(powm2, millerrabin2): Pass two-word args as uuints,
not as mp_limb_t const [2] pointers.  All uses changed.
(prime2_p): Rework to use the new API, fixing a FIXME.
src/factor.c