[Gmp-commit] /var/hg/gmp: 2 new changesets

mercurial at gmplib.org mercurial at gmplib.org
Sat Jan 26 13:35:51 CET 2013


details:   /var/hg/gmp/rev/d510bca143a5
changeset: 15365:d510bca143a5
user:      Torbjorn Granlund <tege at gmplib.org>
date:      Sat Jan 26 13:35:39 2013 +0100
description:
Test also mpn_com.

details:   /var/hg/gmp/rev/8ec61b8b6882
changeset: 15366:8ec61b8b6882
user:      Torbjorn Granlund <tege at gmplib.org>
date:      Sat Jan 26 13:35:47 2013 +0100
description:
ChangeLog

diffstat:

 ChangeLog         |   2 +-
 tests/mpn/logic.c |  22 +++++++++++++---------
 2 files changed, 14 insertions(+), 10 deletions(-)

diffs (72 lines):

diff -r 0617994df651 -r 8ec61b8b6882 ChangeLog
--- a/ChangeLog	Sat Jan 26 13:23:45 2013 +0100
+++ b/ChangeLog	Sat Jan 26 13:35:47 2013 +0100
@@ -7,7 +7,7 @@
 2013-01-26  Torbjorn Granlund  <tege at gmplib.org>
 
 	* tests/mpn/logic.c: Set things up to always test library logops, not
-	gmp-impl.h's inlined variants.
+	gmp-impl.h's inlined variants.  Test also mpn_com.
 
 	* tests/mpn/t-mod_1.c: Test also mpn_mod_1s_3p.
 
diff -r 0617994df651 -r 8ec61b8b6882 tests/mpn/logic.c
--- a/tests/mpn/logic.c	Sat Jan 26 13:23:45 2013 +0100
+++ b/tests/mpn/logic.c	Sat Jan 26 13:35:47 2013 +0100
@@ -45,7 +45,7 @@
 {
   if (mpn_cmp (refp, rp, n))
     {
-      printf ("ERROR in mpn_%s_n\n", funcname);
+      printf ("ERROR in mpn_%s\n", funcname);
       printf ("a: "); mpn_dump (ap, n);
       printf ("b: "); mpn_dump (bp, n);
       printf ("r:   "); mpn_dump (rp, n);
@@ -85,35 +85,39 @@
 
 	  refmpn_and_n (refp, ap, bp, n);
 	  mpn_and_n (rp, ap, bp, n);
-	  check_one (refp, rp, ap, bp, n, "and");
+	  check_one (refp, rp, ap, bp, n, "and_n");
 
 	  refmpn_ior_n (refp, ap, bp, n);
 	  mpn_ior_n (rp, ap, bp, n);
-	  check_one (refp, rp, ap, bp, n, "ior");
+	  check_one (refp, rp, ap, bp, n, "ior_n");
 
 	  refmpn_xor_n (refp, ap, bp, n);
 	  mpn_xor_n (rp, ap, bp, n);
-	  check_one (refp, rp, ap, bp, n, "xor");
+	  check_one (refp, rp, ap, bp, n, "xor_n");
 
 	  refmpn_andn_n (refp, ap, bp, n);
 	  mpn_andn_n (rp, ap, bp, n);
-	  check_one (refp, rp, ap, bp, n, "andn");
+	  check_one (refp, rp, ap, bp, n, "andn_n");
 
 	  refmpn_iorn_n (refp, ap, bp, n);
 	  mpn_iorn_n (rp, ap, bp, n);
-	  check_one (refp, rp, ap, bp, n, "iorn");
+	  check_one (refp, rp, ap, bp, n, "iorn_n");
 
 	  refmpn_nand_n (refp, ap, bp, n);
 	  mpn_nand_n (rp, ap, bp, n);
-	  check_one (refp, rp, ap, bp, n, "nand");
+	  check_one (refp, rp, ap, bp, n, "nand_n");
 
 	  refmpn_nior_n (refp, ap, bp, n);
 	  mpn_nior_n (rp, ap, bp, n);
-	  check_one (refp, rp, ap, bp, n, "nior");
+	  check_one (refp, rp, ap, bp, n, "nior_n");
 
 	  refmpn_xnor_n (refp, ap, bp, n);
 	  mpn_xnor_n (rp, ap, bp, n);
-	  check_one (refp, rp, ap, bp, n, "xnor");
+	  check_one (refp, rp, ap, bp, n, "xnor_n");
+
+	  refmpn_com (refp, ap, n);
+	  mpn_com (rp, ap, n);
+	  check_one (refp, rp, ap, bp, n, "com");
 	}
     }
 


More information about the gmp-commit mailing list