diff options
author | Matt Turner <mattst88@gmail.com> | 2008-11-17 00:55:40 +0000 |
---|---|---|
committer | Matt Turner <mattst88@gmail.com> | 2008-11-17 00:55:40 +0000 |
commit | 129d2f71d495c61bf4284d7a721794119a65f0b3 (patch) | |
tree | 7e8f3192de5640df7a1a8328d6ca479e5a82c9dc | |
parent | 625ae827c8d413473ee957e7f07b9f67120a9678 (diff) |
Convert for-if-break construct to do while
git-svn-id: svn://mattst88.com/svn/cleanbench/trunk@72 0d43b9a7-5ab2-4d7b-af9d-f64450cef757
-rw-r--r-- | idea.c | 8 |
1 files changed, 3 insertions, 5 deletions
@@ -137,11 +137,9 @@ DoIDEA(void) ** # of loops and increasing the loop count until we ** get a number of loops that we can use. */ - for (; loops < LOOP_MAX; loops += 10) { - if (DoIDEAIteration(plain1, crypt1, plain2, loops, Z, DK) > MINIMUM_TICKS) { - break; - } - } + do { + loops += 10; + } while((DoIDEAIteration(plain1, crypt1, plain2, loops, Z, DK) <= MINIMUM_TICKS) && (loops < LOOP_MAX)); } /* |