summaryrefslogtreecommitdiff
path: root/tune
diff options
context:
space:
mode:
Diffstat (limited to 'tune')
-rw-r--r--tune/gcd_bin.c5
-rw-r--r--tune/powm_mod.c5
-rw-r--r--tune/powm_redc.c5
3 files changed, 14 insertions, 1 deletions
diff --git a/tune/gcd_bin.c b/tune/gcd_bin.c
index 487df0d0d..3b746a371 100644
--- a/tune/gcd_bin.c
+++ b/tune/gcd_bin.c
@@ -21,6 +21,11 @@ the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
MA 02111-1307, USA.
*/
+#include "gmp.h"
+#include "gmp-impl.h"
+
+#undef GCD_ACCEL_THRESHOLD
#define GCD_ACCEL_THRESHOLD MP_SIZE_T_MAX
#define __gmpn_gcd mpn_gcd_binary
+
#include "../mpn/generic/gcd.c"
diff --git a/tune/powm_mod.c b/tune/powm_mod.c
index 65c7007e6..4ecba4faa 100644
--- a/tune/powm_mod.c
+++ b/tune/powm_mod.c
@@ -21,6 +21,11 @@ the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
MA 02111-1307, USA.
*/
+#include "gmp.h"
+#include "gmp-impl.h"
+
+#undef POWM_THRESHOLD
#define POWM_THRESHOLD 1
#define __gmpz_powm mpz_powm_mod
+
#include "../mpz/powm.c"
diff --git a/tune/powm_redc.c b/tune/powm_redc.c
index 857c68f72..db83fc48f 100644
--- a/tune/powm_redc.c
+++ b/tune/powm_redc.c
@@ -21,10 +21,13 @@ the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
MA 02111-1307, USA.
*/
+#include "gmp.h"
+#include "gmp-impl.h"
/* WANT_GLOBAL_REDC makes redc() available for speed and tune program use. */
-
+#undef POWM_THRESHOLD
#define POWM_THRESHOLD MP_SIZE_T_MAX
#define WANT_REDC_GLOBAL 1
#define __gmpz_powm mpz_powm_redc
+
#include "../mpz/powm.c"