X-Git-Url: https://git.distorted.org.uk/~mdw/catacomb/blobdiff_plain/1222a44ad62e577af2f1af6f7aee831e89793965..a889a2b3fd8065bc610a0db330b1b63820e4d3c9:/math/pgen.h diff --git a/math/pgen.h b/math/pgen.h index eef91414..5fc96f01 100644 --- a/math/pgen.h +++ b/math/pgen.h @@ -166,6 +166,15 @@ extern pgen_proc pgen_jump; extern pgen_proc pgen_test; +/* --- @pgen_bailliepswtest@ --- * + * + * Runs the Baillie--PSW primality test. The context block is ignored. The + * number of tests must be 2 (= @PGEN_BAILLIEPSWNTESTS@). + */ + +extern pgen_proc pgen_bailliepswtest; +#define PGEN_BAILLIEPSWNTESTS 2 + /*----- Simultaneous primality checking -----------------------------------*/ typedef struct pgen_simulprime { @@ -202,6 +211,13 @@ extern pgen_proc pgen_simulstep; extern pgen_proc pgen_simultest; +/* --- @pgen_simulbailliepswtest@ --- * + * + * Test a collection of numbers simultaneously using Baillie--PSW. + */ + +extern pgen_proc pgen_simulbailliepswtest; + /*----- Miscellaneous steppers and testers --------------------------------*/ typedef struct pgen_gcdstepctx {