Commit eed9b3c7df021d3229a4f212548075084913cc1b

Jeff Garzik 2010-11-26T23:15:38

sha256_4way: perform 16m hashes, not 64k, per invocation

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
diff --git a/sha256_4way.c b/sha256_4way.c
index ddb80f6..35ce818 100644
--- a/sha256_4way.c
+++ b/sha256_4way.c
@@ -125,9 +125,9 @@ unsigned int ScanHash_4WaySSE2(unsigned char *pmidstate, unsigned char *pdata,
             }
         }
 
-        if ((nonce & 0xffff) == 0)
+        if ((nonce & 0xffffff) == 0)
         {
-            *nHashesDone = 0xffff+1;
+            *nHashesDone = 0xffffff+1;
             return -1;
         }
     }