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

mercurial at gmplib.org mercurial at gmplib.org
Sat Jan 26 13:23:49 CET 2013


details:   /var/hg/gmp/rev/a79c47e00ac1
changeset: 15363:a79c47e00ac1
user:      Torbjorn Granlund <tege at gmplib.org>
date:      Sat Jan 26 13:23:37 2013 +0100
description:
Set things up to always test library logops, not gmp-impl.h's inlined variants.

details:   /var/hg/gmp/rev/0617994df651
changeset: 15364:0617994df651
user:      Torbjorn Granlund <tege at gmplib.org>
date:      Sat Jan 26 13:23:45 2013 +0100
description:
ChangeLog.

diffstat:

 ChangeLog         |   3 +++
 tests/mpn/logic.c |  16 +++++++++++++++-
 2 files changed, 18 insertions(+), 1 deletions(-)

diffs (50 lines):

diff -r 026f35713f16 -r 0617994df651 ChangeLog
--- a/ChangeLog	Sat Jan 26 10:50:43 2013 +0100
+++ b/ChangeLog	Sat Jan 26 13:23:45 2013 +0100
@@ -6,6 +6,9 @@
 
 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.
+
 	* tests/mpn/t-mod_1.c: Test also mpn_mod_1s_3p.
 
 	* mpn/generic/mod_1_3.c: Swap some lines to make it similar to mod_4.c.
diff -r 026f35713f16 -r 0617994df651 tests/mpn/logic.c
--- a/tests/mpn/logic.c	Sat Jan 26 10:50:43 2013 +0100
+++ b/tests/mpn/logic.c	Sat Jan 26 13:23:45 2013 +0100
@@ -1,7 +1,7 @@
 /* Test mpn_and, mpn_ior, mpn_xor, mpn_andn, mpn_iorn, mpn_xnor, mpn_nand, and
    mpn_nior.
 
-Copyright 2011, 2012 Free Software Foundation, Inc.
+Copyright 2011, 2012, 2013 Free Software Foundation, Inc.
 
 This file is part of the GNU MP Library test suite.
 
@@ -22,10 +22,24 @@
 #include <stdlib.h>
 #include <stdio.h>
 
+/* Fake native prevalence of the tested operations, so that we actually test
+   the compiled functions, i.., the ones which users will reach.  The inlined
+   variants will be tested through tests/mpz/logic.c.  */
+#define HAVE_NATIVE_mpn_com    1
+#define HAVE_NATIVE_mpn_and_n  1
+#define HAVE_NATIVE_mpn_andn_n 1
+#define HAVE_NATIVE_mpn_nand_n 1
+#define HAVE_NATIVE_mpn_ior_n  1
+#define HAVE_NATIVE_mpn_iorn_n 1
+#define HAVE_NATIVE_mpn_nior_n 1
+#define HAVE_NATIVE_mpn_xor_n  1
+#define HAVE_NATIVE_mpn_xnor_n 1
+
 #include "gmp.h"
 #include "gmp-impl.h"
 #include "tests.h"
 
+
 void
 check_one (mp_srcptr refp, mp_srcptr rp, mp_srcptr ap, mp_srcptr bp, mp_size_t n, char *funcname)
 {


More information about the gmp-commit mailing list