]> git.ipfire.org Git - thirdparty/coreutils.git/commit
factor: always use Baillie-PSW
authorPaul Eggert <eggert@cs.ucla.edu>
Sun, 15 Jun 2025 06:10:25 +0000 (23:10 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Thu, 10 Jul 2025 00:12:39 +0000 (17:12 -0700)
commit30b7851cdf97503a572b7e9a1ab3938f67df81e8
treeb7c00e4475c68f970d6ee3e8e95c33dbf746e881
parent3d442fd8249544035d823b26d1035e097af4a3e4
factor: always use Baillie-PSW

* src/factor.c (USE_BAILLIE_PSW): New constant.
(prime_p, prime2_p): Use it, i.e., always use Baillie-PSW.
Do so by using mp_prime_p.  Do not tell GCC these functions
are pure; the pure mark was present only to pacify GCC
and is no longer needed now that thes functions call mp_prime_p.
src/factor.c