summaryrefslogtreecommitdiff
path: root/mbw.c
diff options
context:
space:
mode:
Diffstat (limited to 'mbw.c')
-rw-r--r--mbw.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/mbw.c b/mbw.c
index 8771152..c2e90e1 100644
--- a/mbw.c
+++ b/mbw.c
@@ -285,9 +285,7 @@ int main(int argc, char **argv)
for(testno=0; testno<MAX_TESTS; testno++) {
te_sum=0;
if(tests[testno]) {
- for (i = (!nr_loops) ? -1 :0 ;
- i<nr_loops;
- i = (!nr_loops) ? i : i+1) {
+ for (i=0; nr_loops==0 || i<nr_loops; i++) {
te=worker(asize, a, b, testno, block_size);
te_sum+=te;
printf("%d\t", i);