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.
}
#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)
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];