blob: e565ac3723ce2b54efedbd2ac6b1cd37cf51dc71 [file] [log] [blame]
Austin Schuhdace2a62020-08-18 10:56:48 -07001/*
2
3Copyright 2013, 2014, 2018, Free Software Foundation, Inc.
4
5This file is part of the GNU MP Library test suite.
6
7The GNU MP Library test suite is free software; you can redistribute it
8and/or modify it under the terms of the GNU General Public License as
9published by the Free Software Foundation; either version 3 of the License,
10or (at your option) any later version.
11
12The GNU MP Library test suite is distributed in the hope that it will be
13useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
14MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
15Public License for more details.
16
17You should have received a copy of the GNU General Public License along with
18the GNU MP Library test suite. If not, see https://www.gnu.org/licenses/. */
19
20#include <stdio.h>
21#include <stdlib.h>
22
23#include "mini-random.h"
24
25#define numberof(x) (sizeof (x) / sizeof ((x)[0]))
26
27void testmain (int argc, char **argv);
28
29void testhalves (int count, void (*tested_fun) (int));
30
31void testfree (void *p);
32
33void
34dump (const char *label, const mpz_t x);
35
36void
37mpz_set_str_or_abort (mpz_ptr z, const char *str, int base);
38
39/* Prototype for wrappers to internal functions to be tested. */
40int
41mpz_lucas_mod (mpz_t V, mpz_t Qk, long Q,
42 mp_bitcnt_t b0, const mpz_t n);