mirror of
https://github.com/GOSTSec/sgminer
synced 2025-01-10 14:58:01 +00:00
Fix double definition of A0 B0 to zeroA zeroB.
This commit is contained in:
parent
862e9da48e
commit
52bb99c3ea
@ -764,8 +764,8 @@ static cl_int queue_diakgcn_kernel(_clState *clState, dev_blk_ctx *blk)
|
||||
CL_SET_BLKARG(ctx_g);
|
||||
CL_SET_BLKARG(ctx_h);
|
||||
|
||||
CL_SET_BLKARG(A0);
|
||||
CL_SET_BLKARG(B0);
|
||||
CL_SET_BLKARG(zeroA);
|
||||
CL_SET_BLKARG(zeroB);
|
||||
|
||||
CL_SET_ARG(clState->outputBuffer);
|
||||
|
||||
|
@ -120,8 +120,8 @@ void precalc_hash(dev_blk_ctx *blk, uint32_t *state, uint32_t *data) {
|
||||
blk->W16addK16 = blk->W16 + SHA256_K[16];
|
||||
blk->W17addK17 = blk->W17 + SHA256_K[17];
|
||||
|
||||
blk->A0 = blk->ctx_a + 0x98c7e2a2;
|
||||
blk->B0 = blk->ctx_a + 0xfc08884d;
|
||||
blk->zeroA = blk->ctx_a + 0x98c7e2a2;
|
||||
blk->zeroB = blk->ctx_a + 0xfc08884d;
|
||||
}
|
||||
|
||||
#define P(t) (W[(t)&0xF] = W[(t-16)&0xF] + (rotate(W[(t-15)&0xF], 25) ^ rotate(W[(t-15)&0xF], 14) ^ (W[(t-15)&0xF] >> 3)) + W[(t-7)&0xF] + (rotate(W[(t-2)&0xF], 15) ^ rotate(W[(t-2)&0xF], 13) ^ (W[(t-2)&0xF] >> 10)))
|
||||
|
Loading…
Reference in New Issue
Block a user