aboutsummaryrefslogtreecommitdiffstats
path: root/test/c/fftw.c
diff options
context:
space:
mode:
authorXavier Leroy <xavier.leroy@inria.fr>2016-07-24 16:09:47 +0200
committerXavier Leroy <xavier.leroy@inria.fr>2016-07-24 16:09:47 +0200
commit04941b3cb8712cee9c3b0806cfe7aa76287c40e8 (patch)
tree54f8cb441d348c3c06821ff288086d2cde19c9a2 /test/c/fftw.c
parent8a9bb1e699d62a8b5c88a54440ee2149acf7021a (diff)
downloadcompcert-kvx-04941b3cb8712cee9c3b0806cfe7aa76287c40e8.tar.gz
compcert-kvx-04941b3cb8712cee9c3b0806cfe7aa76287c40e8.zip
Updates to the local test suite
- Adjust parameters to bring the running time of each test closer to 1 second - compression/arcode.c: array access one past - "inline" -> "static inline" - Remove cchecklink support
Diffstat (limited to 'test/c/fftw.c')
-rw-r--r--test/c/fftw.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/c/fftw.c b/test/c/fftw.c
index 0b414956..40648257 100644
--- a/test/c/fftw.c
+++ b/test/c/fftw.c
@@ -74,14 +74,16 @@ const E KP1_847759065 = ((E) +1.847759065022573512256366378793576573644833252);
/* Test harness */
+#define NRUNS (1024 * 1024)
+
int main()
{
- INT s[8] = { 0,1,2,3,4,5,6,7 };
+ static INT s[8] = { 0,1,2,3,4,5,6,7 };
static R i[1024];
static R o[1024];
int k;
for (k = 0; k < 1024; ++k) i[k] = k;
- for (k = 0; k < 1024 * 1024 * 2; ++k)
+ for (k = 0; k < NRUNS; ++k)
e01_8(i, o, s, s, 64, 8, 8);
for (k = 0; k < 16; ++k)
printf("o[%d] = %.6e\n", k, o[k]);