[Gmp-commit] /home/hgfiles/gmp: Pass normalized divisor to mod_1_1.

mercurial at gmplib.org mercurial at gmplib.org
Sat Jun 19 16:17:20 CEST 2010


details:   /home/hgfiles/gmp/rev/40b15fdbf204
changeset: 13659:40b15fdbf204
user:      Niels M?ller <nisse at lysator.liu.se>
date:      Sat Jun 19 16:16:52 2010 +0200
description:
Pass normalized divisor to mod_1_1.

diffstat:

 ChangeLog    |  5 +++++
 tune/speed.h |  2 +-
 2 files changed, 6 insertions(+), 1 deletions(-)

diffs (24 lines):

diff -r e2000cb9f785 -r 40b15fdbf204 ChangeLog
--- a/ChangeLog	Tue Jun 15 16:20:47 2010 +0200
+++ b/ChangeLog	Sat Jun 19 16:16:52 2010 +0200
@@ -1,3 +1,8 @@
+2010-06-19  Niels Möller  <nisse at lysator.liu.se>
+
+	* tune/speed.h (SPEED_ROUTINE_MPN_MOD_1_1): Pass normalized
+	divisor to the benchmarked function.
+
 2010-06-15  Torbjorn Granlund  <tege at gmplib.org>
 
 	* mpn/x86_64/mod_1_1.asm (mpn_mod_1_1p_cps): Rewrite.
diff -r e2000cb9f785 -r 40b15fdbf204 tune/speed.h
--- a/tune/speed.h	Tue Jun 15 16:20:47 2010 +0200
+++ b/tune/speed.h	Sat Jun 19 16:16:52 2010 +0200
@@ -1372,7 +1372,7 @@
     i = s->reps;							\
     do {								\
       pfunc (inv, s->r);						\
-      function (s->xp, s->size, s->r, inv);				\
+      function (s->xp, s->size, s->r << inv[1], inv);				\
     } while (--i != 0);							\
 									\
     return speed_endtime ();						\


More information about the gmp-commit mailing list