summaryrefslogtreecommitdiff
path: root/tune
diff options
context:
space:
mode:
authorKevin Ryde <user42@zip.com.au>2001-10-27 02:12:51 +0200
committerKevin Ryde <user42@zip.com.au>2001-10-27 02:12:51 +0200
commitdf9f9a7766dbffc9de8eb72ef90dfd28b71acfb6 (patch)
treeefc5cf2f682d64f15fda1f9a6559c2c8e195522b /tune
parent987165ccf0ebd8a0465673c33df1310f12e1e8d8 (diff)
downloadgmp-df9f9a7766dbffc9de8eb72ef90dfd28b71acfb6.tar.gz
* gmp-impl.h, mpn/asm-defs.m4, configure.in, tune/speed.c,
tune/speed.h, tune/many.pl, tests/devel/try.c: Add mpn_mod_34lsub1.
Diffstat (limited to 'tune')
-rwxr-xr-xtune/many.pl5
-rw-r--r--tune/speed.h2
2 files changed, 7 insertions, 0 deletions
diff --git a/tune/many.pl b/tune/many.pl
index fcb8eddd7..368eaa967 100755
--- a/tune/many.pl
+++ b/tune/many.pl
@@ -519,6 +519,11 @@ my @table =
'speed_flags'=> 'FLAG_R',
},
{
+ 'regexp'=> 'mod_34lsub1',
+ 'ret' => 'mp_limb_t',
+ 'args' => 'mp_srcptr src, mp_size_t len',
+ },
+ {
'regexp'=> 'invert_limb',
'ret' => 'mp_limb_t',
'args' => 'mp_limb_t divisor',
diff --git a/tune/speed.h b/tune/speed.h
index f72cbc740..33e9094e9 100644
--- a/tune/speed.h
+++ b/tune/speed.h
@@ -831,6 +831,8 @@ int speed_routine_count_zeros_setup _PROTO ((struct speed_params *s,
#define SPEED_ROUTINE_MPN_MODEXACT_1C_ODD(function) \
SPEED_ROUTINE_MPN_MOD_CALL (function (s->xp, s->size, s->r, CNST_LIMB(0)));
+#define SPEED_ROUTINE_MPN_MOD_34LSUB1(function) \
+ SPEED_ROUTINE_MPN_MOD_CALL ((*function) (s->xp, s->size))
#define SPEED_ROUTINE_MPN_PREINV_MOD_1(function) \
{ \