aboutsummaryrefslogtreecommitdiffstats
path: root/test/c/nsieve.c
diff options
context:
space:
mode:
authorCyril SIX <cyril.six@kalray.eu>2019-09-25 14:37:23 +0200
committerCyril SIX <cyril.six@kalray.eu>2019-09-25 14:37:23 +0200
commit5ca4b192499ee4829aee1256a3bebf2318c68108 (patch)
tree980d8c7605c383c52b03e3345f8a58cc1f97e52e /test/c/nsieve.c
parent32f18c9068b4f23997733df68960f4f6c73a7ff4 (diff)
downloadcompcert-kvx-5ca4b192499ee4829aee1256a3bebf2318c68108.tar.gz
compcert-kvx-5ca4b192499ee4829aee1256a3bebf2318c68108.zip
Restored previous input sizes for other backends
Diffstat (limited to 'test/c/nsieve.c')
-rw-r--r--test/c/nsieve.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/c/nsieve.c b/test/c/nsieve.c
index fc79ba69..3954bcbe 100644
--- a/test/c/nsieve.c
+++ b/test/c/nsieve.c
@@ -29,10 +29,18 @@ static unsigned int nsieve(int m) {
#define NITER 2
int main(int argc, char * argv[]) {
+#ifdef __K1C__
int m = argc < 2 ? 6 : atoi(argv[1]);
+#else
+ int m = argc < 2 ? 9 : atoi(argv[1]);
+#endif
int i, j;
for (i = 0; i < 3; i++) {
+#ifdef __K1C__
int n = 200 << (m-i);
+#else
+ int n = 10000 << (m-i);
+#endif
unsigned count;
for (j = 0; j < NITER; j++) { count = nsieve(n); }
printf("Primes up to %8d %8u\n", n, count);