Commit 3cce56be authored by Niels Möller's avatar Niels Möller

New function mpn_out_str, for use in the testsuite.

parent 5b677535
2014-10-03 Niels Möller <nisse@lysator.liu.se>
* testsuite/testutils.c (mpn_out_str): New function, needed to
replace uses of gmp_fprintf.
* testsuite/ecc-sqrt-test.c (mpz_ui_kronecker)
[NETTLE_USE_MINI_GMP]: New fallback definition when building with
mini-gmp.
......
......@@ -699,6 +699,13 @@ mpn_zero_p (mp_srcptr ap, mp_size_t n)
}
#endif
void
mpn_out_str (FILE *f, int base, const mp_limb_t *xp, mp_size_t xn)
{
mpz_t x;
mpz_out_str (f, base, mpz_roinit_n (x, xp, xn));
}
#if NETTLE_USE_MINI_GMP
void
gmp_randinit_default (struct knuth_lfib_ctx *ctx)
......
......@@ -165,6 +165,9 @@ int
mpn_zero_p (mp_srcptr ap, mp_size_t n);
#endif
void
mpn_out_str (FILE *f, int base, const mp_limb_t *xp, mp_size_t xn);
#if NETTLE_USE_MINI_GMP
typedef struct knuth_lfib_ctx gmp_randstate_t[1];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment