summaryrefslogtreecommitdiff
path: root/tune/speed.h
diff options
context:
space:
mode:
authorNiels M?ller <nisse@lysator.liu.se>2019-08-06 17:16:07 +0200
committerNiels M?ller <nisse@lysator.liu.se>2019-08-06 17:16:07 +0200
commitc552d2f299bd7e51219fd2e0efedac220494c7e7 (patch)
treefa644399afcdf374fbc1d6fb0074d8c6b23d7c8f /tune/speed.h
parent2c76477c5f8125728c8423c6e6d43f2979b0e478 (diff)
downloadgmp-c552d2f299bd7e51219fd2e0efedac220494c7e7.tar.gz
tune/speed: Support mpn_gcd_11.
Diffstat (limited to 'tune/speed.h')
-rw-r--r--tune/speed.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/tune/speed.h b/tune/speed.h
index 6ea000b4c..41df4c675 100644
--- a/tune/speed.h
+++ b/tune/speed.h
@@ -223,6 +223,7 @@ double speed_mpn_hgcd_reduce_1 (struct speed_params *);
double speed_mpn_hgcd_reduce_2 (struct speed_params *);
double speed_mpn_gcd (struct speed_params *);
double speed_mpn_gcd_1 (struct speed_params *);
+double speed_mpn_gcd_11 (struct speed_params *);
double speed_mpn_gcd_1N (struct speed_params *);
double speed_mpn_gcdext (struct speed_params *);
double speed_mpn_gcdext_double (struct speed_params *);
@@ -2820,6 +2821,10 @@ int speed_routine_count_zeros_setup (struct speed_params *, mp_ptr, int, int);
#define SPEED_ROUTINE_MPN_GCD_1(function) \
SPEED_ROUTINE_MPN_GCD_1_CALL( , function (&px[j-1], 1, py[j-1]))
+#define SPEED_ROUTINE_MPN_GCD_11(function) \
+ SPEED_ROUTINE_MPN_GCD_1_CALL((px[i] |= 1, py[i] |= 1), \
+ function (px[j-1], py[j-1]))
+
#define SPEED_ROUTINE_MPN_JACBASE(function) \
SPEED_ROUTINE_MPN_GCD_1_CALL \
({ \