Skip to content

Commit

Permalink
Revert "remove one global."
Browse files Browse the repository at this point in the history
This reverts commit c6e59ec.
  • Loading branch information
girino committed Nov 24, 2014
1 parent c6e59ec commit 93daf73
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions kernel/spreadcoin.cl
Expand Up @@ -218,9 +218,7 @@ __kernel void signature1(__global const unsigned char* block2, __global uint64_t
//uint32_t low_nonce = full_nonce & 0x3F;

__global const unsigned char* block = block2 + 64;
__global const unsigned char* gkinv = block2;
uint32_t kinv[8];
*((uint8*)kinv) = *((__global uint8*)gkinv);
__global const unsigned char* kinv = block2;
__global const unsigned char* prk = block2 + 32;

__global uint64_t *hashWholeBlock = hashWholeBlock_big + (4*(full_nonce));
Expand Down Expand Up @@ -348,8 +346,7 @@ __kernel void signature1(__global const unsigned char* block2, __global uint64_t
for (int i = 0; i < 8; i++)
hh2[i] = SWAP4(hh2[i]);
reverse2((uchar16*)hh2);
// mul256(bufferA, (__global const uint32_t*)kinv, hh2);
mul256ng(bufferA, kinv, hh2);
mul256(bufferA, (__global const uint32_t*)kinv, hh2);
reduce(bufferB, bufferA);
reduce(bufferA, bufferB);
reduce(bufferB, bufferA);
Expand Down

0 comments on commit 93daf73

Please sign in to comment.