From 7f73094352a4da505988d8846a7ece5c15d4612d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Niels=20M=C3=B6ller?= Date: Mon, 15 Nov 2021 19:38:11 +0100 Subject: [PATCH] Reduce allocation in sqrt tests --- testsuite/ecc-sqrt-test.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/testsuite/ecc-sqrt-test.c b/testsuite/ecc-sqrt-test.c index 096cbafc..7984ed81 100644 --- a/testsuite/ecc-sqrt-test.c +++ b/testsuite/ecc-sqrt-test.c @@ -84,7 +84,7 @@ test_sqrt (gmp_randstate_t rands, const struct ecc_modulo *m, int use_redc) mpz_roinit_n (p, m->m, m->size); up = xalloc_limbs (m->size); - rp = xalloc_limbs (2*m->size); + rp = xalloc_limbs (m->size); scratch = xalloc_limbs (m->sqrt_itch); /* Check behaviour for zero input */ @@ -192,7 +192,7 @@ test_sqrt_ratio (gmp_randstate_t rands, const struct ecc_modulo *m) up = xalloc_limbs (m->size); vp = xalloc_limbs (m->size); - rp = xalloc_limbs (2*m->size); + rp = xalloc_limbs (m->size); scratch = xalloc_limbs (m->sqrt_ratio_itch); /* Check behaviour for zero input */ -- 2.47.2