aboutsummaryrefslogtreecommitdiff
path: root/sha256_4way.c
diff options
context:
space:
mode:
authorJeff Garzik <jeff@garzik.org>2010-11-26 23:12:24 -0500
committerJeff Garzik <jgarzik@redhat.com>2010-11-26 23:12:24 -0500
commit35ea649d976b938f09f383bbc580872aaa5c61eb (patch)
tree58da699df11517a9b41ae293f4066b68dba5ae70 /sha256_4way.c
parenta50201eb2142f6ea7ffe451c87a341ef158be84e (diff)
Improve hash performance statistics.
Diffstat (limited to 'sha256_4way.c')
-rw-r--r--sha256_4way.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sha256_4way.c b/sha256_4way.c
index 56132ff..ddb80f6 100644
--- a/sha256_4way.c
+++ b/sha256_4way.c
@@ -97,7 +97,7 @@ static const unsigned int pSHA256InitState[8] =
unsigned int ScanHash_4WaySSE2(unsigned char *pmidstate, unsigned char *pdata,
- unsigned char *phash1, unsigned char *phash, unsigned int *nHashesDone)
+ unsigned char *phash1, unsigned char *phash, unsigned long *nHashesDone)
{
unsigned int *nNonce_p = (unsigned int*)(pdata + 12);
unsigned int nonce = 0;
@@ -120,6 +120,7 @@ unsigned int ScanHash_4WaySSE2(unsigned char *pmidstate, unsigned char *pdata,
for (i = 0; i < 32/4; i++)
((unsigned int*)phash)[i] = thash[i][j];
+ *nHashesDone = nonce;
return nonce + j;
}
}