@@ -119,7 +119,6 @@ bool ScanHash_4WaySSE2(int thr_id, const unsigned char *pmidstate,
unsigned int thash[9][NPAR] __attribute__((aligned(128)));
int j;
- nonce += NPAR;
*nNonce_p = nonce;
DoubleBlockSHA256(pdata, phash1, pmidstate, thash, pSHA256InitState);
@@ -147,6 +146,8 @@ bool ScanHash_4WaySSE2(int thr_id, const unsigned char *pmidstate,
*last_nonce = nonce;
return false;
}
+
+ nonce += NPAR;
@@ -108,7 +108,6 @@ bool scanhash_cryptopp(int thr_id, const unsigned char *midstate,
work_restart[thr_id].restart = 0;
while (1) {
- n++;
*nonce = n;
runhash(hash1, data, midstate);
@@ -123,6 +122,8 @@ bool scanhash_cryptopp(int thr_id, const unsigned char *midstate,
*last_nonce = n;
+ n++;
@@ -254,7 +254,6 @@ bool scanhash_c(int thr_id, const unsigned char *midstate, unsigned char *data,
@@ -271,6 +270,8 @@ bool scanhash_c(int thr_id, const unsigned char *midstate, unsigned char *data,
@@ -46,7 +46,6 @@ bool scanhash_via(int thr_id, const unsigned char *pmidstate,
data32[i] = swab32(((uint32_t *)data_inout)[i]);
/* first SHA256 transform */
@@ -80,6 +79,8 @@ bool scanhash_via(int thr_id, const unsigned char *pmidstate,