[Gmp-commit] /home/hgfiles/gmp: No guess, be conservative.
mercurial at gmplib.org
mercurial at gmplib.org
Wed Jan 27 07:45:23 CET 2010
details: /home/hgfiles/gmp/rev/73636b3ec7c2
changeset: 13401:73636b3ec7c2
user: Marco Bodrato <bodrato at mail.dm.unipi.it>
date: Wed Jan 27 07:45:18 2010 +0100
description:
No guess, be conservative.
diffstat:
ChangeLog | 8 ++++++++
mpn/generic/mu_bdiv_q.c | 4 ++--
mpn/generic/mu_bdiv_qr.c | 4 ++--
mpn/generic/mu_div_qr.c | 2 +-
mpn/generic/mu_divappr_q.c | 2 +-
5 files changed, 14 insertions(+), 6 deletions(-)
diffs (81 lines):
diff -r 962b60c834c7 -r 73636b3ec7c2 ChangeLog
--- a/ChangeLog Tue Jan 26 21:48:01 2010 +0100
+++ b/ChangeLog Wed Jan 27 07:45:18 2010 +0100
@@ -1,3 +1,11 @@
+2010-01-27 Marco Bodrato <bodrato at mail.dm.unipi.it>
+
+ * mpn/generic/mu_div_qr.c (mpn_mu_div_qr_itch): Disabled guessed
+ estimate, enabled a conservative one.
+ * mpn/generic/mu_divappr_q.c (mpn_mu_divappr_q_itch): Likewise.
+ * mpn/generic/mu_bdiv_qr.c (mpn_mu_bdiv_qr_itch): Likewise.
+ * mpn/generic/mu_bdiv_q.c (mpn_mu_bdiv_q_itch): Likewise.
+
2010-01-26 Marco Bodrato <bodrato at mail.dm.unipi.it>
* mpn/generic/mulmod_bnm1.c (mpn_mulmod_bnm1): Partial rewrite to
diff -r 962b60c834c7 -r 73636b3ec7c2 mpn/generic/mu_bdiv_q.c
--- a/mpn/generic/mu_bdiv_q.c Tue Jan 26 21:48:01 2010 +0100
+++ b/mpn/generic/mu_bdiv_q.c Wed Jan 27 07:45:18 2010 +0100
@@ -235,7 +235,7 @@
{
tn = mpn_mulmod_bnm1_next_size (dn);
/* FIXME: check for the correct estimate and remove #if */
-#if 1
+#if 0
itch_out = mpn_mulmod_bnm1_itch (tn, dn, in);
#else
itch_out = mpn_mulmod_bnm1_itch (tn, tn, tn);
@@ -257,7 +257,7 @@
{
tn = mpn_mulmod_bnm1_next_size (qn);
/* FIXME: check for the correct estimate and remove #if */
-#if 1
+#if 0
itch_out = mpn_mulmod_bnm1_itch (tn, qn, in);
#else
itch_out = mpn_mulmod_bnm1_itch (tn, tn, tn);
diff -r 962b60c834c7 -r 73636b3ec7c2 mpn/generic/mu_bdiv_qr.c
--- a/mpn/generic/mu_bdiv_qr.c Tue Jan 26 21:48:01 2010 +0100
+++ b/mpn/generic/mu_bdiv_qr.c Wed Jan 27 07:45:18 2010 +0100
@@ -255,7 +255,7 @@
{
tn = mpn_mulmod_bnm1_next_size (dn);
/* FIXME: check for the correct estimate and remove #if */
-#if 1
+#if 0
itch_out = mpn_mulmod_bnm1_itch (tn, dn, in);
#else
itch_out = mpn_mulmod_bnm1_itch (tn, tn, tn);
@@ -277,7 +277,7 @@
{
tn = mpn_mulmod_bnm1_next_size (dn);
/* FIXME: check for the correct estimate and remove #if */
-#if 1
+#if 0
itch_out = mpn_mulmod_bnm1_itch (tn, dn, in);
#else
itch_out = mpn_mulmod_bnm1_itch (tn, tn, tn);
diff -r 962b60c834c7 -r 73636b3ec7c2 mpn/generic/mu_div_qr.c
--- a/mpn/generic/mu_div_qr.c Tue Jan 26 21:48:01 2010 +0100
+++ b/mpn/generic/mu_div_qr.c Wed Jan 27 07:45:18 2010 +0100
@@ -405,7 +405,7 @@
mp_size_t itch_local = mpn_mulmod_bnm1_next_size (dn + 1);
mp_size_t in = mpn_mu_div_qr_choose_in (nn - dn, dn, mua_k);
/* FIXME: check for the correct estimate and remove #if */
-#if 1
+#if 0
mp_size_t itch_out = mpn_mulmod_bnm1_itch (itch_local, dn, in);
#else
mp_size_t itch_out = mpn_mulmod_bnm1_itch (itch_local, itch_local, itch_local);
diff -r 962b60c834c7 -r 73636b3ec7c2 mpn/generic/mu_divappr_q.c
--- a/mpn/generic/mu_divappr_q.c Tue Jan 26 21:48:01 2010 +0100
+++ b/mpn/generic/mu_divappr_q.c Wed Jan 27 07:45:18 2010 +0100
@@ -358,7 +358,7 @@
mp_size_t itch_local = mpn_mulmod_bnm1_next_size (dn + 1);
mp_size_t in = mpn_mu_div_qr_choose_in (nn - dn, dn, mua_k);
/* FIXME: check for the correct estimate and remove #if */
-#if 1
+#if 0
mp_size_t itch_out = mpn_mulmod_bnm1_itch (itch_local, dn, in);
#else
mp_size_t itch_out = mpn_mulmod_bnm1_itch (itch_local, itch_local, itch_local);
More information about the gmp-commit
mailing list