]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
factor: let builder specify MR_REPS
authorPaul Eggert <eggert@cs.ucla.edu>
Sat, 14 Jun 2025 02:48:16 +0000 (19:48 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Thu, 10 Jul 2025 00:12:39 +0000 (17:12 -0700)
* src/factor.c (MR_REPS): Let the builder specify it
with -DMR_REPS=whatever.

src/factor.c

index 3ffd0f2dbac86e23dedb3d66a821be082873779a..da7bd3535d2b9e34eaa823fcc28acde783ded9eb 100644 (file)
@@ -703,7 +703,9 @@ static bool dev_debug = false;
 static bool flag_prove_primality = PROVE_PRIMALITY;
 
 /* Number of Miller-Rabin tests to run when not proving primality.  */
-#define MR_REPS 25
+#ifndef MR_REPS
+# define MR_REPS 25
+#endif
 
 static void
 factor_insert_refind (struct factors *factors, mp_limb_t p, int i, int off)