Shorten the code path in the kernel even more.
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
diff --git a/phatk110714.cl b/phatk110714.cl
index e6ba9f9..5c274dd 100644
--- a/phatk110714.cl
+++ b/phatk110714.cl
@@ -386,32 +386,26 @@ __kernel void search( const uint state0, const uint state1, const uint state2, c
#if defined(VECTORS4) || defined(VECTORS2)
if (Vals[7].x == -H[7])
{
- output[W[3].x & NFLAG] = W[3].x;
- output[MAXBUFFERS] = 1;
+ output[MAXBUFFERS] = output[NFLAG & W[3].x] = W[3].x;
}
if (Vals[7].y == -H[7])
{
- output[W[3].y & NFLAG] = W[3].y;
- output[MAXBUFFERS] = 1;
+ output[MAXBUFFERS] = output[NFLAG & W[3].y] = W[3].y;
}
#ifdef VECTORS4
if (Vals[7].z == -H[7])
{
- output[W[3].z & NFLAG] = W[3].z;
- output[MAXBUFFERS] = 1;
+ output[MAXBUFFERS] = output[NFLAG & W[3].z] = W[3].z;
}
if (Vals[7].w == -H[7])
{
- output[W[3].w & NFLAG] = W[3].w;
- output[MAXBUFFERS] = 1;
+ output[MAXBUFFERS] = output[NFLAG & W[3].w] = W[3].w;
}
#endif
#else
if (Vals[7] == -H[7])
{
- output[W[3] & NFLAG] = W[3];
- output[MAXBUFFERS] = 1;
+ output[MAXBUFFERS] = output[NFLAG & W[3]] = W[3];
}
#endif
-
-}
\ No newline at end of file
+}