[Gmp-commit] /home/hgfiles/gmp: 2 new changesets

mercurial at gmplib.org mercurial at gmplib.org
Tue Dec 22 04:41:06 CET 2009


details:   /home/hgfiles/gmp/rev/0ddbf0d3d4e6
changeset: 13177:0ddbf0d3d4e6
user:      Torbjorn Granlund <tege at gmplib.org>
date:      Tue Dec 22 03:56:40 2009 +0100
description:
Decrease default MU_DIV och MU_BDIV thresholds.

details:   /home/hgfiles/gmp/rev/af80158a951d
changeset: 13178:af80158a951d
user:      Torbjorn Granlund <tege at gmplib.org>
date:      Tue Dec 22 04:40:56 2009 +0100
description:
Put decls first in block.

diffstat:

 gmp-impl.h               |  8 ++++----
 mpn/generic/mu_bdiv_qr.c |  6 +++---
 2 files changed, 7 insertions(+), 7 deletions(-)

diffs (63 lines):

diff -r 573e6a2019e4 -r af80158a951d gmp-impl.h
--- a/gmp-impl.h	Tue Dec 22 03:47:42 2009 +0100
+++ b/gmp-impl.h	Tue Dec 22 04:40:56 2009 +0100
@@ -1774,19 +1774,19 @@
 #endif
 
 #ifndef MU_DIVAPPR_Q_THRESHOLD
-#define MU_DIVAPPR_Q_THRESHOLD         4000
+#define MU_DIVAPPR_Q_THRESHOLD         2000
 #endif
 
 #ifndef MU_DIV_Q_THRESHOLD
-#define MU_DIV_Q_THRESHOLD             4000
+#define MU_DIV_Q_THRESHOLD             2000
 #endif
 
 #ifndef MU_BDIV_Q_THRESHOLD
-#define MU_BDIV_Q_THRESHOLD            2000
+#define MU_BDIV_Q_THRESHOLD            1000
 #endif
 
 #ifndef MU_BDIV_QR_THRESHOLD
-#define MU_BDIV_QR_THRESHOLD           2000
+#define MU_BDIV_QR_THRESHOLD           1000
 #endif
 
 #ifndef MULMOD_BNM1_THRESHOLD
diff -r 573e6a2019e4 -r af80158a951d mpn/generic/mu_bdiv_qr.c
--- a/mpn/generic/mu_bdiv_qr.c	Tue Dec 22 03:47:42 2009 +0100
+++ b/mpn/generic/mu_bdiv_qr.c	Tue Dec 22 04:40:56 2009 +0100
@@ -165,9 +165,9 @@
 #if WANT_FFT
       if (ABOVE_THRESHOLD (dn, MUL_FFT_MODF_THRESHOLD))
 	{
+	  int c0;
 	  k = mpn_fft_best_k (dn, 0);
 	  m = mpn_fft_next_size (dn, k);
-	  int c0;
 
 	  c0 = mpn_mul_fft (tp, m, dp, dn, qp, qn, k);
 	  ASSERT_ALWAYS (c0 == 0);
@@ -220,9 +220,9 @@
 	 is not efficient.  */
       if (ABOVE_THRESHOLD (dn, MUL_FFT_MODF_THRESHOLD))
 	{
+	  int c0;
 	  k = mpn_fft_best_k (dn, 0);
 	  m = mpn_fft_next_size (dn, k);
-	  int c0;
 
 	  c0 = mpn_mul_fft (tp, m, dp, dn, qp, in, k);
 	  ASSERT_ALWAYS (c0 == 0);
@@ -246,9 +246,9 @@
 #if WANT_FFT
       if (ABOVE_THRESHOLD (dn, MUL_FFT_MODF_THRESHOLD))
 	{
+	  int c0;
 	  k = mpn_fft_best_k (dn, 0);
 	  m = mpn_fft_next_size (dn, k);
-	  int c0;
 
           c0 = mpn_mul_fft (tp, m, dp, dn, qp, qn, k);
 	  ASSERT_ALWAYS (c0 == 0);


More information about the gmp-commit mailing list