]> git.ipfire.org Git - thirdparty/nettle.git/commitdiff
Reduce allocation in modinv test
authorNiels Möller <nisse@lysator.liu.se>
Mon, 15 Nov 2021 18:43:36 +0000 (19:43 +0100)
committerNiels Möller <nisse@lysator.liu.se>
Mon, 15 Nov 2021 18:43:36 +0000 (19:43 +0100)
ChangeLog
testsuite/ecc-modinv-test.c

index dfa5e1e1388a85a48bc49625694aa93fa20663f8..cbfb5fc2b315f73dd7b140b2bc02b135197ae404 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2021-11-15  Niels Möller  <nisse@lysator.liu.se>
 
+       * 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.
 
index a30f182e5d8621f36007d11ec2627eccf1abd2f8..4abfdc7dd964d92d12384d244d37666d2cdc9d52 100644 (file)
@@ -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);