Browse Source

Revert use of any() in output code in poclbm kernel. Slower.

nfactor-troky
Con Kolivas 13 years ago
parent
commit
b0a01be319
  1. 30
      poclbm120222.cl

30
poclbm120222.cl

@ -1256,28 +1256,32 @@ Vals[7]+=ch(Vals[0],Vals[1],Vals[2]);
#define NFLAG (0x7F) #define NFLAG (0x7F)
#if defined(VECTORS4) #if defined(VECTORS4)
bool result = any(Vals[7] == 0x136032edU); Vals[7] ^= 0x136032edU;
if (result) { bool result = Vals[7].x & Vals[7].y & Vals[7].z & Vals[7].w;
if (!result) {
output[FOUND] = FOUND; output[FOUND] = FOUND;
if (Vals[7].x == 0x136032edU) if (!Vals[7].x)
output[NFLAG & nonce.x] = nonce.x; output[NFLAG & nonce.x] = nonce.x;
if (Vals[7].y == 0x136032edU) if (!Vals[7].y)
output[NFLAG & nonce.y] = nonce.y; output[NFLAG & nonce.y] = nonce.y;
if (Vals[7].z == 0x136032edU) if (!Vals[7].z)
output[NFLAG & nonce.z] = nonce.z; output[NFLAG & nonce.z] = nonce.z;
if (Vals[7].w == 0x136032edU) if (!Vals[7].w)
output[NFLAG & nonce.w] = nonce.w; output[NFLAG & nonce.w] = nonce.w;
} }
#elif defined(VECTORS2) #elif defined VECTORS2
bool result = any(Vals[7] == 0x136032edU); Vals[7] ^= 0x136032edU;
bool result = Vals[7].x & Vals[7].y;
if (result) { if (!result) {
output[FOUND] = FOUND; output[FOUND] = FOUND;
if (Vals[7].x == 0x136032edU) if (!Vals[7].x)
output[NFLAG & nonce.x] = nonce.x; output[FOUND] = output[NFLAG & nonce.x] = nonce.x;
if (Vals[7].y == 0x136032edU) if (!Vals[7].y)
output[NFLAG & nonce.y] = nonce.y; output[FOUND] = output[NFLAG & nonce.y] = nonce.y;
} }
#else #else
if (Vals[7] == 0x136032EDU) if (Vals[7] == 0x136032EDU)

Loading…
Cancel
Save