Use one less op before the branch code in diakgcn.
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 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77
diff --git a/diakgcn120222.cl b/diakgcn120222.cl
index 2c9772a..8fd9f24 100644
--- a/diakgcn120222.cl
+++ b/diakgcn120222.cl
@@ -569,55 +569,49 @@ __kernel
#define NFLAG (0x7F)
#ifdef VECTORS8
- V[7] ^= 0x136032ed;
-
- bool result = any(V[7] == 0);
+ bool result = any(V[7] == 0x136032ed);
if (result) {
output[FOUND] = FOUND;
- if (!V[7].s0)
+ if (V[7].s0 == 0x136032ed)
output[NFLAG & nonce.s0] = nonce.s0;
- if (!V[7].s1)
+ if (V[7].s1 == 0x136032ed)
output[NFLAG & nonce.s1] = nonce.s1;
- if (!V[7].s2)
+ if (V[7].s2 == 0x136032ed)
output[NFLAG & nonce.s2] = nonce.s2;
- if (!V[7].s3)
+ if (V[7].s3 == 0x136032ed)
output[NFLAG & nonce.s3] = nonce.s3;
- if (!V[7].s4)
+ if (V[7].s4 == 0x136032ed)
output[NFLAG & nonce.s4] = nonce.s4;
- if (!V[7].s5)
+ if (V[7].s5 == 0x136032ed)
output[NFLAG & nonce.s5] = nonce.s5;
- if (!V[7].s6)
+ if (V[7].s6 == 0x136032ed)
output[NFLAG & nonce.s6] = nonce.s6;
- if (!V[7].s7)
+ if (V[7].s7 == 0x136032ed)
output[NFLAG & nonce.s7] = nonce.s7;
}
#elif defined VECTORS4
- V[7] ^= 0x136032ed;
-
- bool result = any(V[7] == 0);
+ bool result = any(V[7] == 0x136032ed);
if (result) {
output[FOUND] = FOUND;
- if (!V[7].x)
+ if (V[7].x == 0x136032ed)
output[NFLAG & nonce.x] = nonce.x;
- if (!V[7].y)
+ if (V[7].y == 0x136032ed)
output[NFLAG & nonce.y] = nonce.y;
- if (!V[7].z)
+ if (V[7].z == 0x136032ed)
output[NFLAG & nonce.z] = nonce.z;
- if (!V[7].w)
+ if (V[7].w == 0x136032ed)
output[NFLAG & nonce.w] = nonce.w;
}
#elif defined VECTORS2
- V[7] ^= 0x136032ed;
-
- bool result = any(V[7] == 0);
+ bool result = any(V[7] == 0x136032ed);
if (result) {
output[FOUND] = FOUND;
- if (!V[7].x)
+ if (V[7].x == 0x136032ed)
output[NFLAG & nonce.x] = nonce.x;
- if (!V[7].y)
+ if (V[7].y == 0x136032ed)
output[NFLAG & nonce.y] = nonce.y;
}
#else