aboutsummaryrefslogtreecommitdiffstats
path: root/test/c/nsievebits.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/c/nsievebits.c')
-rw-r--r--test/c/nsievebits.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/c/nsievebits.c b/test/c/nsievebits.c
index 743a5ffd..a723d6d8 100644
--- a/test/c/nsievebits.c
+++ b/test/c/nsievebits.c
@@ -30,7 +30,11 @@ nsieve(unsigned int m)
return (count);
}
+#ifdef __KVX__
+#define NITER 1
+#else
#define NITER 2
+#endif
static void
test(unsigned int n)
@@ -48,7 +52,11 @@ main(int ac, char **av)
{
unsigned int n;
+#ifdef __KVX__
+ n = ac < 2 ? 2 : atoi(av[1]);
+#else
n = ac < 2 ? 9 : atoi(av[1]);
+#endif
test(n);
if (n >= 1)
test(n - 1);