[Gmp-commit] /home/hgfiles/gmp: Added speed support for udiv_qrnnd_preinv3.

mercurial at gmplib.org mercurial at gmplib.org
Fri Feb 26 21:07:56 CET 2010


details:   /home/hgfiles/gmp/rev/0a825b240736
changeset: 13470:0a825b240736
user:      Niels Möller <nisse at lysator.liu.se>
date:      Fri Feb 26 21:07:44 2010 +0100
description:
Added speed support for udiv_qrnnd_preinv3.

diffstat:

 tune/common.c |  19 +++++++++++++++++++
 tune/speed.c  |   1 +
 tune/speed.h  |   1 +
 3 files changed, 21 insertions(+), 0 deletions(-)

diffs (51 lines):

diff -r 72bd403bf8b8 -r 0a825b240736 tune/common.c
--- a/tune/common.c	Fri Feb 26 14:01:09 2010 +0100
+++ b/tune/common.c	Fri Feb 26 21:07:44 2010 +0100
@@ -2077,6 +2077,25 @@
 }
 
 double
+speed_udiv_qrnnd_preinv3 (struct speed_params *s)
+{
+  SPEED_ROUTINE_UDIV_QRNND_A (1);
+  {
+    udiv_qrnnd_preinv3 (q, r, r, q, d, dinv);
+     udiv_qrnnd_preinv3 (q, r, r, q, d, dinv);
+     udiv_qrnnd_preinv3 (q, r, r, q, d, dinv);
+    udiv_qrnnd_preinv3 (q, r, r, q, d, dinv);
+     udiv_qrnnd_preinv3 (q, r, r, q, d, dinv);
+     udiv_qrnnd_preinv3 (q, r, r, q, d, dinv);
+    udiv_qrnnd_preinv3 (q, r, r, q, d, dinv);
+     udiv_qrnnd_preinv3 (q, r, r, q, d, dinv);
+     udiv_qrnnd_preinv3 (q, r, r, q, d, dinv);
+    udiv_qrnnd_preinv3 (q, r, r, q, d, dinv);
+  }
+  SPEED_ROUTINE_UDIV_QRNND_B;
+}
+
+double
 speed_udiv_qrnnd_c (struct speed_params *s)
 {
   SPEED_ROUTINE_UDIV_QRNND_A (1);
diff -r 72bd403bf8b8 -r 0a825b240736 tune/speed.c
--- a/tune/speed.c	Fri Feb 26 14:01:09 2010 +0100
+++ b/tune/speed.c	Fri Feb 26 21:07:44 2010 +0100
@@ -434,6 +434,7 @@
   { "udiv_qrnnd",             speed_udiv_qrnnd,             FLAG_R_OPTIONAL },
   { "udiv_qrnnd_preinv1",     speed_udiv_qrnnd_preinv1,     FLAG_R_OPTIONAL },
   { "udiv_qrnnd_preinv2",     speed_udiv_qrnnd_preinv2,     FLAG_R_OPTIONAL },
+  { "udiv_qrnnd_preinv3",     speed_udiv_qrnnd_preinv3,     FLAG_R_OPTIONAL },
   { "udiv_qrnnd_c",           speed_udiv_qrnnd_c,           FLAG_R_OPTIONAL },
 #if HAVE_NATIVE_mpn_udiv_qrnnd
   { "mpn_udiv_qrnnd",         speed_mpn_udiv_qrnnd,         FLAG_R_OPTIONAL },
diff -r 72bd403bf8b8 -r 0a825b240736 tune/speed.h
--- a/tune/speed.h	Fri Feb 26 14:01:09 2010 +0100
+++ b/tune/speed.h	Fri Feb 26 21:07:44 2010 +0100
@@ -346,6 +346,7 @@
 double speed_udiv_qrnnd __GMP_PROTO ((struct speed_params *s));
 double speed_udiv_qrnnd_preinv1 __GMP_PROTO ((struct speed_params *s));
 double speed_udiv_qrnnd_preinv2 __GMP_PROTO ((struct speed_params *s));
+double speed_udiv_qrnnd_preinv3 __GMP_PROTO ((struct speed_params *s));
 double speed_udiv_qrnnd_c __GMP_PROTO ((struct speed_params *s));
 double speed_umul_ppmm __GMP_PROTO ((struct speed_params *s));
 


More information about the gmp-commit mailing list