diff options
author | Niels M?ller <nisse@lysator.liu.se> | 2019-08-16 08:21:42 +0200 |
---|---|---|
committer | Niels M?ller <nisse@lysator.liu.se> | 2019-08-16 08:21:42 +0200 |
commit | 5638f7afc35f4d04fa748d261213be67f3cf28d3 (patch) | |
tree | 15640fc0636346ea92ffd9aed8610a2fc46591db /tune/speed.c | |
parent | c6fa69d38787f4b2dbfcf89ed46c133f87c87728 (diff) | |
download | gmp-5638f7afc35f4d04fa748d261213be67f3cf28d3.tar.gz |
Speed support for gcd_22.
Calls mpn_gcd_22(al, al, bl, bl), so that B+1 is a common factor.
* tune/speed.h (SPEED_ROUTINE_MPN_GCD_22): New macro.
* tune/speed.c (routine): Add mpn_gcd_22.
* tune/common.c (speed_mpn_gcd_22): New function.
Diffstat (limited to 'tune/speed.c')
-rw-r--r-- | tune/speed.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tune/speed.c b/tune/speed.c index f9261227b..a013a24b7 100644 --- a/tune/speed.c +++ b/tune/speed.c @@ -297,6 +297,7 @@ const struct routine_t { { "mpn_gcd_1", speed_mpn_gcd_1, FLAG_R_OPTIONAL }, { "mpn_gcd_11", speed_mpn_gcd_11, FLAG_R_OPTIONAL }, { "mpn_gcd_1N", speed_mpn_gcd_1N, FLAG_R_OPTIONAL }, + { "mpn_gcd_22", speed_mpn_gcd_22, FLAG_R_OPTIONAL }, { "mpn_gcd", speed_mpn_gcd }, |