diff options
author | Jeff Garzik <jeff@garzik.org> | 2010-11-26 23:12:24 -0500 |
---|---|---|
committer | Jeff Garzik <jgarzik@redhat.com> | 2010-11-26 23:12:24 -0500 |
commit | 35ea649d976b938f09f383bbc580872aaa5c61eb (patch) | |
tree | 58da699df11517a9b41ae293f4066b68dba5ae70 /sha256_4way.c | |
parent | a50201eb2142f6ea7ffe451c87a341ef158be84e (diff) |
Improve hash performance statistics.
Diffstat (limited to 'sha256_4way.c')
-rw-r--r-- | sha256_4way.c | 3 |
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; } } |