summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Bates <sbates@raithlin.com>2015-05-06 14:43:04 -0600
committerStephen Bates <sbates@raithlin.com>2015-05-06 14:43:04 -0600
commit6aefa9b8d5be1c9425d0a30fd7e6aaeda74878a9 (patch)
treedb486224859c8f50014096b8f1c229094c49de8d
parent1ff382d18946a15615be1771f98cb603a90fb07a (diff)
Added review changes for pull request
-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);