summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Turner <mattst88@gmail.com>2008-11-18 01:59:17 +0000
committerMatt Turner <mattst88@gmail.com>2008-11-18 01:59:17 +0000
commit3584455ded54d2b599cf57241578c37772944dcf (patch)
treeb8a2feae99e2fffa6931e8183f391074809f2924
parent6acb07dc76ffb22758005d3452b71b3bcebf7cd5 (diff)
Fix regression that doubleed idea's scores. I added { } in the wrong place
git-svn-id: svn://mattst88.com/svn/cleanbench/trunk@85 0d43b9a7-5ab2-4d7b-af9d-f64450cef757
-rw-r--r--idea.c28
1 files changed, 14 insertions, 14 deletions
diff --git a/idea.c b/idea.c
index 391dbff..509f394 100644
--- a/idea.c
+++ b/idea.c
@@ -153,25 +153,25 @@ DoIDEA(void)
static clock_t
DoIDEAIteration(unsigned char *plain1, unsigned char *crypt1, unsigned char *plain2, unsigned long nloops, IDEAkey Z, IDEAkey DK)
{
- clock_t start, stop;
- register unsigned long i;
- register unsigned long j;
+ clock_t start, stop;
+ register unsigned long i;
+ register unsigned long j;
- start = clock();
+ start = clock();
- for (i = 0; i < nloops; i++) {
- for (j = 0; j < ARRAY_SIZE; j += sizeof(uint16_t) * 4) {
- cipher_idea((uint16_t *)(plain1 + j), (uint16_t *)(crypt1 + j), Z); /* Encrypt */
- }
- }
+ for (i = 0; i < nloops; i++) {
+ for (j = 0; j < ARRAY_SIZE; j += sizeof(uint16_t) * 4) {
+ cipher_idea((uint16_t *)(plain1 + j), (uint16_t *)(crypt1 + j), Z); /* Encrypt */
+ }
- for (j = 0; j < ARRAY_SIZE; j += sizeof(uint16_t) * 4) {
- cipher_idea((uint16_t *)(crypt1 + j), (uint16_t *)(plain2 + j), DK); /* Decrypt */
- }
+ for (j = 0; j < ARRAY_SIZE; j += sizeof(uint16_t) * 4) {
+ cipher_idea((uint16_t *)(crypt1 + j), (uint16_t *)(plain2 + j), DK); /* Decrypt */
+ }
+ }
- stop = clock();
+ stop = clock();
- return stop - start;
+ return stop - start;
}
/********