Browse Source

Separate out additions in scrypt kernel.

nfactor-troky
Con Kolivas 12 years ago
parent
commit
3d032ce615
  1. 7
      scrypt121016.cl

7
scrypt121016.cl

@ -10,9 +10,12 @@ @@ -10,9 +10,12 @@
#define Wr1(x) (rotl(x, 15U) ^ rotl(x, 13U) ^ (x>>10U))
#define RND(a, b, c, d, e, f, g, h, k) \
h += Tr1(e) + Ch(e, f, g) + k; \
h += Tr1(e); \
h += Ch(e, f, g); \
h += k; \
d += h; \
h += Tr2(a) + Maj(a, b, c);
h += Tr2(a); \
h += Maj(a, b, c);
void SHA256(uint4*restrict state0,uint4*restrict state1, const uint4 block0, const uint4 block1, const uint4 block2, const uint4 block3)
{

Loading…
Cancel
Save