aboutsummaryrefslogtreecommitdiffstats
path: root/test/c/nsieve.c
diff options
context:
space:
mode:
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 819d47f1..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);