From d9e4276c7d0d8114ff71ac9824999f11606e02e4 Mon Sep 17 00:00:00 2001 From: William Hart Date: Thu, 11 Jun 2015 00:19:08 +0000 Subject: [PATCH] Reduce memory usage of two fft tests, so ulimit doesn't have to be changed on openbsd. --- tests/fft/t-div_2expmod_2expp1.c | 2 +- tests/fft/t-mul_2expmod_2expp1.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/fft/t-div_2expmod_2expp1.c b/tests/fft/t-div_2expmod_2expp1.c index 854f4441..29448788 100644 --- a/tests/fft/t-div_2expmod_2expp1.c +++ b/tests/fft/t-div_2expmod_2expp1.c @@ -66,7 +66,7 @@ main(void) /* normalisation mod p = 2^wn + 1 where B divides nw and n is a power of 2 */ for (bits = GMP_LIMB_BITS; bits < 16*GMP_LIMB_BITS; bits += GMP_LIMB_BITS) { - for (j = 1; j < 32; j++) + for (j = 1; j < 16; j++) { for (k = 1; k <= GMP_LIMB_BITS; k <<= 1) { diff --git a/tests/fft/t-mul_2expmod_2expp1.c b/tests/fft/t-mul_2expmod_2expp1.c index 9e1937ea..043b976c 100644 --- a/tests/fft/t-mul_2expmod_2expp1.c +++ b/tests/fft/t-mul_2expmod_2expp1.c @@ -66,7 +66,7 @@ main(void) /* normalisation mod p = 2^wn + 1 where B divides nw and n is a power of 2 */ for (bits = GMP_LIMB_BITS; bits < 16*GMP_LIMB_BITS; bits += GMP_LIMB_BITS) { - for (j = 1; j < 32; j++) + for (j = 1; j < 16; j++) { for (k = 1; k <= GMP_LIMB_BITS; k <<= 1) {