[Gmp-commit] /home/hgfiles/gmp: Re-enable mpn_add_n_sub_n calls.

mercurial at gmplib.org mercurial at gmplib.org
Fri Mar 26 10:23:51 CET 2010


details:   /home/hgfiles/gmp/rev/da5903b6e386
changeset: 13534:da5903b6e386
user:      Torbjorn Granlund <tege at gmplib.org>
date:      Fri Mar 26 10:23:46 2010 +0100
description:
Re-enable mpn_add_n_sub_n calls.

diffstat:

 ChangeLog                        |  3 ---
 mpn/generic/toom_eval_dgr3_pm2.c |  2 +-
 mpn/generic/toom_eval_pm2.c      |  2 +-
 3 files changed, 2 insertions(+), 5 deletions(-)

diffs (37 lines):

diff -r c6b2eefd237d -r da5903b6e386 ChangeLog
--- a/ChangeLog	Thu Mar 25 23:47:44 2010 +0100
+++ b/ChangeLog	Fri Mar 26 10:23:46 2010 +0100
@@ -2,9 +2,6 @@
 
 	* mpn/ia64/add_n_sub_n.asm: New file.
 
-	* mpn/generic/toom_eval_pm2.c: Disable mpn_add_n_sub_n call.
-	* mpn/generic/toom_eval_dgr3_pm2.c: Likewise.
-
 	* mpn/generic/toom33_mul.c: Fix mpn_add_n_sub_n usage.
 	* mpn/generic/toom3_sqr.c: Likewise.
 	* mpn/generic/toom63_mul.c: Likewise.
diff -r c6b2eefd237d -r da5903b6e386 mpn/generic/toom_eval_dgr3_pm2.c
--- a/mpn/generic/toom_eval_dgr3_pm2.c	Thu Mar 25 23:47:44 2010 +0100
+++ b/mpn/generic/toom_eval_dgr3_pm2.c	Fri Mar 26 10:23:46 2010 +0100
@@ -66,7 +66,7 @@
 
   neg = (mpn_cmp (xp2, tp, n + 1) < 0) ? ~0 : 0;
 
-#if 0 && HAVE_NATIVE_mpn_add_n_sub_n
+#if HAVE_NATIVE_mpn_add_n_sub_n
   if (neg)
     mpn_add_n_sub_n (xp2, xm2, tp, xp2, n + 1);
   else
diff -r c6b2eefd237d -r da5903b6e386 mpn/generic/toom_eval_pm2.c
--- a/mpn/generic/toom_eval_pm2.c	Thu Mar 25 23:47:44 2010 +0100
+++ b/mpn/generic/toom_eval_pm2.c	Fri Mar 26 10:23:46 2010 +0100
@@ -95,7 +95,7 @@
 
   neg = (mpn_cmp (xp2, tp, n + 1) < 0) ? ~0 : 0;
 
-#if 0 && HAVE_NATIVE_mpn_add_n_sub_n
+#if HAVE_NATIVE_mpn_add_n_sub_n
   if (neg)
     mpn_add_n_sub_n (xp2, xm2, tp, xp2, n + 1);
   else


More information about the gmp-commit mailing list