From: Niels Möller Date: Mon, 15 Nov 2021 18:43:36 +0000 (+0100) Subject: Reduce allocation in modinv test X-Git-Tag: nettle_3.8_release_20220602~64 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a6f9bdeb450f9d0bbd5576b7d156a51c8ddaf094;p=thirdparty%2Fnettle.git Reduce allocation in modinv test --- diff --git a/ChangeLog b/ChangeLog index dfa5e1e1..cbfb5fc2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2021-11-15 Niels Möller + * testsuite/ecc-modinv-test.c (test_modulo): Trim allocation for + result area. + * testsuite/ecc-sqrt-test.c (test_sqrt, test_sqrt_ratio): Likewise. + * testsuite/ecc-sqrt-test.c (test_sqrt_ratio): Fix sqrt_ratio test for v = 0, failure is expected. diff --git a/testsuite/ecc-modinv-test.c b/testsuite/ecc-modinv-test.c index a30f182e..4abfdc7d 100644 --- a/testsuite/ecc-modinv-test.c +++ b/testsuite/ecc-modinv-test.c @@ -55,7 +55,7 @@ test_modulo (gmp_randstate_t rands, const char *name, mpz_init (r); a = xalloc_limbs (m->size); - ai = xalloc_limbs (2*m->size); + ai = xalloc_limbs (m->size); ref = xalloc_limbs (m->size);; scratch = xalloc_limbs (m->invert_itch);