summaryrefslogtreecommitdiff
path: root/tune
diff options
context:
space:
mode:
authorKevin Ryde <user42@zip.com.au>2000-11-20 20:45:35 +0100
committerKevin Ryde <user42@zip.com.au>2000-11-20 20:45:35 +0100
commitcc11ac498af9aaf88a67990602dc487527815cd9 (patch)
tree4ad32104f261e566daf244d8030b207db3ff5313 /tune
parent258040d5cb1c3689608f18b99e0e3180e4c83fd9 (diff)
downloadgmp-cc11ac498af9aaf88a67990602dc487527815cd9.tar.gz
* tune/{gcd_bin,powm_mod,powm_redc}.c: Use #undef after gmp-impl.h to
force thresholds.
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"