Remove addition of final constant before testing for result in poclbm kernel.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
diff --git a/poclbm120213.cl b/poclbm120213.cl
index 9185aff..4ee026e 100644
--- a/poclbm120213.cl
+++ b/poclbm120213.cl
@@ -1268,13 +1268,13 @@ W[16]+=W[20];
W[23]+=W[19];
W[23]+=(rotr(W[16],6)^rotr(W[16],11)^rotr(W[16],25));
W[23]+=ch(W[16],W[17],W[18]);
-W[23]+=K[60];
+//W[23]+=K[60]; diffed from 0xA41F32E7
#define FOUND (0x80)
#define NFLAG (0x7F)
#if defined(VECTORS4)
- W[23] ^= -0x5be0cd19U;
+ W[23] ^= 0x136032ED;
bool result = W[23].x & W[23].y & W[23].z & W[23].w;
if (!result) {
if (!W[23].x)
@@ -1287,7 +1287,7 @@ W[23]+=K[60];
output[FOUND] = output[NFLAG & nonce.w] = nonce.w;
}
#elif defined(VECTORS2)
- W[23] ^= -0x5be0cd19U;
+ W[23] ^= 0x136032ED;
bool result = W[23].x & W[23].y;
if (!result) {
if (!W[23].x)
@@ -1296,7 +1296,7 @@ W[23]+=K[60];
output[FOUND] = output[NFLAG & nonce.y] = nonce.y;
}
#else
- if (W[23] == -0x5be0cd19U)
+ if (W[23] == 0x136032ED)
output[FOUND] = output[NFLAG & nonce] = nonce;
#endif
}