Fix 4-way and 12-way scrypt

This commit is contained in:
pooler 2012-04-02 18:24:55 +02:00
parent 80c762b0da
commit ca34d624f6
2 changed files with 2 additions and 2 deletions

View file

@ -498,7 +498,7 @@ static void *miner_thread(void *userdata)
int thr_id = mythr->id;
struct work work;
uint32_t max_nonce;
uint32_t end_nonce = 0xffffffffU / opt_n_threads * (thr_id + 1) - 4;
uint32_t end_nonce = 0xffffffffU / opt_n_threads * (thr_id + 1) - 0x10;
unsigned char *scratchbuf = NULL;
/* Set worker threads to nice 19 and then preferentially to SCHED_IDLE

View file

@ -115,7 +115,7 @@ sha256d_4preext2_30:
.globl _sha256_init_4way
sha256_init_4way:
_sha256_init_4way:
movl 8(%esp), %edx
movl 4(%esp), %edx
movdqa sha256_4h+0, %xmm0
movdqa sha256_4h+16, %xmm1
movdqa sha256_4h+32, %xmm2