summaryrefslogtreecommitdiff
path: root/mini-gmp
diff options
context:
space:
mode:
authorMarco Bodrato <bodrato@mail.dm.unipi.it>2018-12-21 06:42:06 +0100
committerMarco Bodrato <bodrato@mail.dm.unipi.it>2018-12-21 06:42:06 +0100
commit66b63c94f717bb2b9dea64ab605def317ee4d023 (patch)
tree3ef1cb7c7a3b3a6ac4da31de44f13306d0f7d091 /mini-gmp
parent810d843ac89e7551b03db8f2284bd99f325ba848 (diff)
downloadgmp-66b63c94f717bb2b9dea64ab605def317ee4d023.tar.gz
Prototype
Diffstat (limited to 'mini-gmp')
-rw-r--r--mini-gmp/tests/testutils.c1
-rw-r--r--mini-gmp/tests/testutils.h9
2 files changed, 8 insertions, 2 deletions
diff --git a/mini-gmp/tests/testutils.c b/mini-gmp/tests/testutils.c
index 787dc4ffc..b8aedd5c2 100644
--- a/mini-gmp/tests/testutils.c
+++ b/mini-gmp/tests/testutils.c
@@ -19,7 +19,6 @@ the GNU MP Library test suite. If not, see https://www.gnu.org/licenses/. */
#include "testutils.h"
-#define __MINI_GMP_TESTING 1
/* Include it here, so we we could tweak, e.g., how MPZ_REALLOC
works. */
#include "../mini-gmp.c"
diff --git a/mini-gmp/tests/testutils.h b/mini-gmp/tests/testutils.h
index bc56c06a7..8d9484f45 100644
--- a/mini-gmp/tests/testutils.h
+++ b/mini-gmp/tests/testutils.h
@@ -1,6 +1,6 @@
/*
-Copyright 2013, 2014, Free Software Foundation, Inc.
+Copyright 2013, 2014, 2018, Free Software Foundation, Inc.
This file is part of the GNU MP Library test suite.
@@ -35,3 +35,10 @@ dump (const char *label, const mpz_t x);
void
mpz_set_str_or_abort (mpz_ptr z, const char *str, int base);
+
+/* Prototype for functions that have one only for the tests. */
+#define __MINI_GMP_TESTING 1
+
+int
+mpz_lucas_mod (mpz_t V, mpz_t Qk, long Q,
+ mp_bitcnt_t b0, const mpz_t n);