Browse Source

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

Jeff Garzik 15 years ago
parent
commit
eed9b3c7df
1 changed files with 2 additions and 2 deletions
  1. 2 2
      sha256_4way.c

+ 2 - 2
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;
         }
     }