From 3584455ded54d2b599cf57241578c37772944dcf Mon Sep 17 00:00:00 2001 From: Matt Turner Date: Tue, 18 Nov 2008 01:59:17 +0000 Subject: 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 --- idea.c | 28 ++++++++++++++-------------- 1 file 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; } /******** -- cgit v1.2.3