summaryrefslogtreecommitdiff
path: root/hardinfo2/arch/common/cryptohash.h
diff options
context:
space:
mode:
authorLeandro Augusto Fogolin Pereira <leandro@zorg.(none)>2009-04-11 18:54:47 -0300
committerLeandro Augusto Fogolin Pereira <leandro@zorg.(none)>2009-04-11 18:54:47 -0300
commitf456e935f74f23ae76de31d5fb84906090c8e1aa (patch)
tree5a2f8764152a5e17b95cdfabaf022a350f435fd0 /hardinfo2/arch/common/cryptohash.h
parent07ba0e3bf71c3c5ad7d98be58160e13069d9cf77 (diff)
Fit crash with FFT benchmark.
Diffstat (limited to 'hardinfo2/arch/common/cryptohash.h')
-rw-r--r--hardinfo2/arch/common/cryptohash.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/hardinfo2/arch/common/cryptohash.h b/hardinfo2/arch/common/cryptohash.h
index 9897bb6b..2c917c9b 100644
--- a/hardinfo2/arch/common/cryptohash.h
+++ b/hardinfo2/arch/common/cryptohash.h
@@ -39,12 +39,12 @@ static void inline sha1_step(char *data, glong srclen)
SHA1Final(checksum, &ctx);
}
-static gpointer cryptohash_for(unsigned int start, unsigned int end, void *data, GTimer *timer)
+static gpointer cryptohash_for(unsigned int start, unsigned int end, void *data, gint thread_number)
{
unsigned int i;
for (i = start; i <= end; i++) {
- if (i % 2 == 0) {
+ if (i & 1) {
md5_step(data, 65536);
} else {
sha1_step(data, 65536);