diff options
author | Xavier Leroy <xavier.leroy@inria.fr> | 2016-07-24 16:09:47 +0200 |
---|---|---|
committer | Xavier Leroy <xavier.leroy@inria.fr> | 2016-07-24 16:09:47 +0200 |
commit | 04941b3cb8712cee9c3b0806cfe7aa76287c40e8 (patch) | |
tree | 54f8cb441d348c3c06821ff288086d2cde19c9a2 /test/c/nsievebits.c | |
parent | 8a9bb1e699d62a8b5c88a54440ee2149acf7021a (diff) | |
download | compcert-04941b3cb8712cee9c3b0806cfe7aa76287c40e8.tar.gz compcert-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/nsievebits.c')
-rw-r--r-- | test/c/nsievebits.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/test/c/nsievebits.c b/test/c/nsievebits.c index 9ce6aaa0..ed9cde52 100644 --- a/test/c/nsievebits.c +++ b/test/c/nsievebits.c @@ -30,13 +30,16 @@ nsieve(unsigned int m) return (count); } +#define NITER 10 + static void test(unsigned int n) { unsigned int count, m; + int i; m = (1 << n) * 10000; - count = nsieve(m); + for (i = 0; i < NITER; i++) { count = nsieve(m); } printf("Primes up to %8u %8u\n", m, count); } |