Browse Source

Use min() function on 2 vector output path in phatk kernel and don't use extra variable for both 2 and 4 vectors.

nfactor-troky
Con Kolivas 13 years ago
parent
commit
532179b24d
  1. 6
      phatk120223.cl

6
phatk120223.cl

@ -392,8 +392,7 @@ void search( const uint state0, const uint state1, const uint state2, const uint
#define NFLAG (0x7F) #define NFLAG (0x7F)
#ifdef VECTORS4 #ifdef VECTORS4
bool result = W[117].x & W[117].y & W[117].z & W[117].w; if (!(W[117].x & W[117].y & W[117].z & W[117].w)) {
if (!result) {
if (!W[117].x) if (!W[117].x)
output[FOUND] = output[NFLAG & W[3].x] = W[3].x; output[FOUND] = output[NFLAG & W[3].x] = W[3].x;
if (!W[117].y) if (!W[117].y)
@ -404,8 +403,7 @@ void search( const uint state0, const uint state1, const uint state2, const uint
output[FOUND] = output[NFLAG & W[3].w] = W[3].w; output[FOUND] = output[NFLAG & W[3].w] = W[3].w;
} }
#elif defined VECTORS2 #elif defined VECTORS2
bool result = W[117].x & W[117].y; if (!(min(W[117].x, W[117].y))) {
if (!result) {
if (!W[117].x) if (!W[117].x)
output[FOUND] = output[NFLAG & W[3].x] = W[3].x; output[FOUND] = output[NFLAG & W[3].x] = W[3].x;
if (!W[117].y) if (!W[117].y)

Loading…
Cancel
Save