[Gmp-commit] /home/hgfiles/gmp: Use SQR_TOOM2_THRESHOLD as limit for a native...

mercurial at gmplib.org mercurial at gmplib.org
Thu Dec 24 11:09:29 CET 2009


details:   /home/hgfiles/gmp/rev/4689c4513d05
changeset: 13210:4689c4513d05
user:      Torbjorn Granlund <tege at gmplib.org>
date:      Thu Dec 24 11:09:20 2009 +0100
description:
Use SQR_TOOM2_THRESHOLD as limit for a native mpn_sqr_basecase.

diffstat:

 ChangeLog              |  5 +++++
 mpn/generic/powm_sec.c |  6 +++---
 2 files changed, 8 insertions(+), 3 deletions(-)

diffs (28 lines):

diff -r 8ade2671fe7f -r 4689c4513d05 ChangeLog
--- a/ChangeLog	Thu Dec 24 10:11:36 2009 +0100
+++ b/ChangeLog	Thu Dec 24 11:09:20 2009 +0100
@@ -1,3 +1,8 @@
+2009-12-24  Torbjorn Granlund  <tege at gmplib.org>
+
+	* mpn/generic/powm_sec.c: Use SQR_TOOM2_THRESHOLD as limit for a native
+	mpn_sqr_basecase, not TUNE_SQR_TOOM2_MAX.
+
 2009-12-23  Marco Bodrato <bodrato at mail.dm.unipi.it>
 
 	* tune/common.c, tune/speed.c, tune/speed.h: Support for measuring
diff -r 8ade2671fe7f -r 4689c4513d05 mpn/generic/powm_sec.c
--- a/mpn/generic/powm_sec.c	Thu Dec 24 10:11:36 2009 +0100
+++ b/mpn/generic/powm_sec.c	Thu Dec 24 11:09:20 2009 +0100
@@ -89,9 +89,9 @@
 #ifdef TUNE_SQR_TOOM2_MAX
 /* We slightly abuse TUNE_SQR_TOOM2_MAX here.  If it is set for an assembly
    mpn_sqr_basecase, it comes from SQR_TOOM2_THRESHOLD_MAX in the assembly
-   file.  Assembly mpn_sqr_basecase that do not define it, should allow any
-   size.  */
-#define SQR_BASECASE_MAX  TUNE_SQR_TOOM2_MAX
+   file.  An assembly mpn_sqr_basecase that does not define it, should allow
+   any size.  */
+#define SQR_BASECASE_MAX  SQR_TOOM2_THRESHOLD
 #endif
 #endif
 


More information about the gmp-commit mailing list