[Gmp-commit] /home/hgfiles/gmp: Added speed support for mpz_powm_sec.
mercurial at gmplib.org
mercurial at gmplib.org
Wed May 12 21:05:02 CEST 2010
details: /home/hgfiles/gmp/rev/6353b0d82503
changeset: 13625:6353b0d82503
user: Niels M?ller <nisse at lysator.liu.se>
date: Wed May 12 21:04:57 2010 +0200
description:
Added speed support for mpz_powm_sec.
diffstat:
ChangeLog | 9 ++++++++-
tune/common.c | 5 +++++
tune/speed.c | 1 +
tune/speed.h | 1 +
4 files changed, 15 insertions(+), 1 deletions(-)
diffs (56 lines):
diff -r 5b0baf874eb9 -r 6353b0d82503 ChangeLog
--- a/ChangeLog Tue May 11 16:09:10 2010 +0200
+++ b/ChangeLog Wed May 12 21:04:57 2010 +0200
@@ -1,7 +1,14 @@
+2010-05-12 Niels Möller <nisse at lysator.liu.se>
+
+ * tune/common.c (speed_mpz_powm_sec): New function.
+ * tune/speed.h: Declare speed_mpz_powm_sec.
+ * tune/speed.c (routine): Added speed_mpz_powm_sec.
+
2010-05-11 Niels Möller <nisse at lysator.liu.se>
* mpz/jacobi.c (mpz_jacobi): Deleted old implementation.
- Reorganized new implementation, to handle small inputs effciently.
+ Reorganized new implementation, to handle small inputs
+ efficiently.
* tests/mpz/t-jac.c (check_large_quotients): Reduced test sizes.
(check_data): One more input pair related to a fixed bug.
diff -r 5b0baf874eb9 -r 6353b0d82503 tune/common.c
--- a/tune/common.c Tue May 11 16:09:10 2010 +0200
+++ b/tune/common.c Wed May 12 21:04:57 2010 +0200
@@ -1561,6 +1561,11 @@
SPEED_ROUTINE_MPZ_POWM (mpz_powm_redc);
}
double
+speed_mpz_powm_sec (struct speed_params *s)
+{
+ SPEED_ROUTINE_MPZ_POWM (mpz_powm_sec);
+}
+double
speed_mpz_powm_ui (struct speed_params *s)
{
SPEED_ROUTINE_MPZ_POWM_UI (mpz_powm_ui);
diff -r 5b0baf874eb9 -r 6353b0d82503 tune/speed.c
--- a/tune/speed.c Tue May 11 16:09:10 2010 +0200
+++ b/tune/speed.c Wed May 12 21:04:57 2010 +0200
@@ -362,6 +362,7 @@
{ "mpz_powm", speed_mpz_powm },
{ "mpz_powm_mod", speed_mpz_powm_mod },
{ "mpz_powm_redc", speed_mpz_powm_redc },
+ { "mpz_powm_sec", speed_mpz_powm_sec },
{ "mpz_powm_ui", speed_mpz_powm_ui, FLAG_R_OPTIONAL },
{ "mpz_mod", speed_mpz_mod },
diff -r 5b0baf874eb9 -r 6353b0d82503 tune/speed.h
--- a/tune/speed.h Tue May 11 16:09:10 2010 +0200
+++ b/tune/speed.h Wed May 12 21:04:57 2010 +0200
@@ -331,6 +331,7 @@
double speed_mpz_powm __GMP_PROTO ((struct speed_params *s));
double speed_mpz_powm_mod __GMP_PROTO ((struct speed_params *s));
double speed_mpz_powm_redc __GMP_PROTO ((struct speed_params *s));
+double speed_mpz_powm_sec __GMP_PROTO ((struct speed_params *s));
double speed_mpz_powm_ui __GMP_PROTO ((struct speed_params *s));
double speed_mpz_urandomb __GMP_PROTO ((struct speed_params *s));
More information about the gmp-commit
mailing list