Browse Source

Add last value in vectors in diablo and poclbm kernel for consistency with original code.

nfactor-troky
Con Kolivas 13 years ago
parent
commit
4885b02e32
  1. 2
      diablo120222.cl
  2. 7
      poclbm120222.cl

2
diablo120222.cl

@ -1309,7 +1309,7 @@ ZA[10]+=ZA[17];
ZA[10]+=ZR25(ZA[14]); ZA[10]+=ZR25(ZA[14]);
ZA[10]+=ZA[6]; ZA[10]+=ZA[6];
ZA[10]+=ZR26(ZA[15]); ZA[10]+=ZR26(ZA[15]);
ZA[10]^=0x136032EDU; ZA[10]+=0xEC9FCD13U;
bool result = any(!ZA[10]); bool result = any(!ZA[10]);

7
poclbm120222.cl

@ -1254,7 +1254,7 @@ Vals[4]+=Vals[0];
Vals[7]+=Vals[3]; Vals[7]+=Vals[3];
Vals[7]+=(rotr(Vals[4],6)^rotr(Vals[4],11)^rotr(Vals[4],25)); Vals[7]+=(rotr(Vals[4],6)^rotr(Vals[4],11)^rotr(Vals[4],25));
Vals[7]+=ch(Vals[4],Vals[5],Vals[6]); Vals[7]+=ch(Vals[4],Vals[5],Vals[6]);
Vals[7] ^= 0x136032edU; Vals[7]+=0xEC9FCD13U;
bool result = any(!Vals[7]); bool result = any(!Vals[7]);
if (result) { if (result) {
if (!Vals[7].x) if (!Vals[7].x)
@ -1269,7 +1269,7 @@ Vals[4]+=Vals[0];
#endif #endif
} }
#else #else
if (!(Vals[7]+ if ((Vals[7]+
Ma(Vals[2],Vals[0],Vals[1])+ Ma(Vals[2],Vals[0],Vals[1])+
(rotr(Vals[0],2)^rotr(Vals[0],13)^rotr(Vals[0],22))+ (rotr(Vals[0],2)^rotr(Vals[0],13)^rotr(Vals[0],22))+
W[12]+ W[12]+
@ -1278,8 +1278,7 @@ Vals[4]+=Vals[0];
(rotr(W[10],17)^rotr(W[10],19)^(W[10]>>10U))+ (rotr(W[10],17)^rotr(W[10],19)^(W[10]>>10U))+
Vals[3]+ Vals[3]+
(rotr(Vals[4],6)^rotr(Vals[4],11)^rotr(Vals[4],25))+ (rotr(Vals[4],6)^rotr(Vals[4],11)^rotr(Vals[4],25))+
ch(Vals[4],Vals[5],Vals[6])- ch(Vals[4],Vals[5],Vals[6])) == 0x136032edU)
0x136032edU))
output[FOUND] = output[NFLAG & nonce] = nonce; output[FOUND] = output[NFLAG & nonce] = nonce;
#endif #endif
} }

Loading…
Cancel
Save