[Gmp-commit] /var/hg/gmp: mini-gmp: Enable testing with different limb sizes ...

mercurial at gmplib.org mercurial at gmplib.org
Sat Nov 16 23:12:39 UTC 2019


details:   /var/hg/gmp/rev/7e4646d10822
changeset: 17964:7e4646d10822
user:      Marco Bodrato <bodrato at mail.dm.unipi.it>
date:      Sun Nov 17 00:12:24 2019 +0100
description:
mini-gmp: Enable testing with different limb sizes (types).

diffstat:

 Makefile.am         |  2 +-
 mini-gmp/mini-gmp.h |  6 +++++-
 2 files changed, 6 insertions(+), 2 deletions(-)

diffs (28 lines):

diff -r 0a7bccdcda14 -r 7e4646d10822 Makefile.am
--- a/Makefile.am	Sat Nov 16 08:48:59 2019 +0100
+++ b/Makefile.am	Sun Nov 17 00:12:24 2019 +0100
@@ -442,7 +442,7 @@
 		MINI_GMP_DIR="$$abs_srcdir/mini-gmp" \
 		LDFLAGS="-L../../.libs" \
 		LIBS="-lgmp -lm" \
-		CC="$(CC)" CFLAGS="$(CFLAGS)" CPPFLAGS="-I../.." check
+		CC="$(CC)" CFLAGS="$(CFLAGS)" CPPFLAGS="$(CPPFLAGS) -I../.." check
 
 clean-mini-gmp:
 	if [ -d mini-gmp/tests ] ; then \
diff -r 0a7bccdcda14 -r 7e4646d10822 mini-gmp/mini-gmp.h
--- a/mini-gmp/mini-gmp.h	Sat Nov 16 08:48:59 2019 +0100
+++ b/mini-gmp/mini-gmp.h	Sun Nov 17 00:12:24 2019 +0100
@@ -53,7 +53,11 @@
 			      void *(**) (void *, size_t, size_t),
 			      void (**) (void *, size_t));
 
-typedef unsigned long mp_limb_t;
+#ifndef MINI_GMP_LIMB_TYPE
+#define MINI_GMP_LIMB_TYPE unsigned long
+#endif
+
+typedef MINI_GMP_LIMB_TYPE mp_limb_t;
 typedef long mp_size_t;
 typedef unsigned long mp_bitcnt_t;
 


More information about the gmp-commit mailing list