From b941146c2967a30da3e02400a4d7709ef7d1572e Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Tue, 14 Feb 2012 21:53:52 +1100 Subject: [PATCH] Remove addition of final constant before testing for result in poclbm kernel. --- poclbm120213.cl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/poclbm120213.cl b/poclbm120213.cl index 9185aff7..4ee026e3 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 }