From fe136a980074ee53601980ef92ddc553547982a0 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Fri, 13 Jun 2025 19:48:16 -0700 Subject: [PATCH] factor: let builder specify MR_REPS * src/factor.c (MR_REPS): Let the builder specify it with -DMR_REPS=whatever. --- src/factor.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/factor.c b/src/factor.c index 3ffd0f2dba..da7bd3535d 100644 --- a/src/factor.c +++ b/src/factor.c @@ -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) -- 2.47.3