[Gmp-commit] /home/hgfiles/gmp: Add measuring of mpn_mul_5 and mpn_mul_6.

mercurial at gmplib.org mercurial at gmplib.org
Sat Jan 8 13:05:53 CET 2011


details:   /home/hgfiles/gmp/rev/60ee2df20fea
changeset: 13733:60ee2df20fea
user:      Torbjorn Granlund <tege at gmplib.org>
date:      Sat Jan 08 13:05:28 2011 +0100
description:
Add measuring of mpn_mul_5 and mpn_mul_6.

diffstat:

 ChangeLog     |   6 ++++++
 tune/common.c |  14 ++++++++++++++
 tune/speed.c  |   6 ++++++
 tune/speed.h  |   2 ++
 4 files changed, 28 insertions(+), 0 deletions(-)

diffs (65 lines):

diff -r 940aa0d2c5c7 -r 60ee2df20fea ChangeLog
--- a/ChangeLog	Sat Jan 08 12:43:40 2011 +0100
+++ b/ChangeLog	Sat Jan 08 13:05:28 2011 +0100
@@ -1,3 +1,9 @@
+2011-01-08  Torbjorn Granlund  <tege at gmplib.org>
+
+	* tune/speed.c (routine): Add measuring of mpn_mul_5 and mpn_mul_6.
+	* tune/common.c (speed_mpn_mul_5, speed_mpn_mul_6): New functions.
+	* tune/speed.h: Declare new functions.
+
 2011-01-03 Marco Bodrato <bodrato at mail.dm.unipi.it>
 
 	* mpz/aors.h: Remove #ifdef BERKELEY_MP, and cleanup.
diff -r 940aa0d2c5c7 -r 60ee2df20fea tune/common.c
--- a/tune/common.c	Sat Jan 08 12:43:40 2011 +0100
+++ b/tune/common.c	Sat Jan 08 13:05:28 2011 +0100
@@ -556,6 +556,20 @@
   SPEED_ROUTINE_MPN_UNARY_4 (mpn_mul_4);
 }
 #endif
+#if HAVE_NATIVE_mpn_mul_5
+double
+speed_mpn_mul_5 (struct speed_params *s)
+{
+  SPEED_ROUTINE_MPN_UNARY_5 (mpn_mul_5);
+}
+#endif
+#if HAVE_NATIVE_mpn_mul_6
+double
+speed_mpn_mul_6 (struct speed_params *s)
+{
+  SPEED_ROUTINE_MPN_UNARY_6 (mpn_mul_6);
+}
+#endif
 
 
 double
diff -r 940aa0d2c5c7 -r 60ee2df20fea tune/speed.c
--- a/tune/speed.c	Sat Jan 08 12:43:40 2011 +0100
+++ b/tune/speed.c	Sat Jan 08 13:05:28 2011 +0100
@@ -191,6 +191,12 @@
 #if HAVE_NATIVE_mpn_mul_4
   { "mpn_mul_4",         speed_mpn_mul_4,     FLAG_R_OPTIONAL },
 #endif
+#if HAVE_NATIVE_mpn_mul_5
+  { "mpn_mul_5",         speed_mpn_mul_5,     FLAG_R_OPTIONAL },
+#endif
+#if HAVE_NATIVE_mpn_mul_6
+  { "mpn_mul_6",         speed_mpn_mul_6,     FLAG_R_OPTIONAL },
+#endif
 
   { "mpn_divrem_1",      speed_mpn_divrem_1,  FLAG_R },
   { "mpn_divrem_1f",     speed_mpn_divrem_1f, FLAG_R },
diff -r 940aa0d2c5c7 -r 60ee2df20fea tune/speed.h
--- a/tune/speed.h	Sat Jan 08 12:43:40 2011 +0100
+++ b/tune/speed.h	Sat Jan 08 13:05:28 2011 +0100
@@ -220,6 +220,8 @@
 double speed_mpn_mul_2 __GMP_PROTO ((struct speed_params *s));
 double speed_mpn_mul_3 __GMP_PROTO ((struct speed_params *s));
 double speed_mpn_mul_4 __GMP_PROTO ((struct speed_params *s));
+double speed_mpn_mul_5 __GMP_PROTO ((struct speed_params *s));
+double speed_mpn_mul_6 __GMP_PROTO ((struct speed_params *s));
 double speed_mpn_mul __GMP_PROTO ((struct speed_params *s));
 double speed_mpn_mul_basecase __GMP_PROTO ((struct speed_params *s));
 double speed_mpn_mul_fft __GMP_PROTO ((struct speed_params *s));


More information about the gmp-commit mailing list