Browse Source

There is no point having vectors in the it variable.

nfactor-troky
Con Kolivas 13 years ago
parent
commit
6c6bb02b90
  1. 26
      phatk.cl

26
phatk.cl

@ -141,7 +141,7 @@ void search( const uint state0, const uint state1, const uint state2, const uint
W[19] = P1(19) + P2(19) + P3(19); W[19] = P1(19) + P2(19) + P3(19);
W[18] = P1(18) + P3(18) + P4(18); W[18] = P1(18) + P3(18) + P4(18);
W[20] = P2(20) + P3(20) + P4(20); W[20] = P2(20) + P3(20) + P4(20);
u it; uint it;
#ifdef VECTORS4 #ifdef VECTORS4
W[3] = base + (get_global_id(0)<<2) + (uint4)(0, 1, 2, 3); W[3] = base + (get_global_id(0)<<2) + (uint4)(0, 1, 2, 3);
@ -366,9 +366,9 @@ void search( const uint state0, const uint state1, const uint state2, const uint
#if defined(VECTORS4) || defined(VECTORS2) #if defined(VECTORS4) || defined(VECTORS2)
if (Vals[7].x == 0) if (Vals[7].x == 0)
{ {
for (it.x = 0; it.x != 127; it.x++) { for (it = 0; it != 127; it++) {
if (!output[it.x]) { if (!output[it]) {
output[it.x] = W[3].x; output[it] = W[3].x;
output[127] = 1; output[127] = 1;
break; break;
} }
@ -376,9 +376,9 @@ void search( const uint state0, const uint state1, const uint state2, const uint
} }
if (Vals[7].y == 0) if (Vals[7].y == 0)
{ {
for (it.y = 0; it.y != 127; it.y++) { for (it = 0; it != 127; it++) {
if (!output[it.y]) { if (!output[it]) {
output[it.y] = W[3].y; output[it] = W[3].y;
output[127] = 1; output[127] = 1;
break; break;
} }
@ -387,9 +387,9 @@ void search( const uint state0, const uint state1, const uint state2, const uint
#ifdef VECTORS4 #ifdef VECTORS4
if (Vals[7].z == 0) if (Vals[7].z == 0)
{ {
for (it.z = 0; it.z != 127; it.z++) { for (it = 0; it != 127; it++) {
if (!output[it.z]) { if (!output[it]) {
output[it.z] = W[3].z; output[it] = W[3].z;
output[127] = 1; output[127] = 1;
break; break;
} }
@ -397,9 +397,9 @@ void search( const uint state0, const uint state1, const uint state2, const uint
} }
if (Vals[7].w == 0) if (Vals[7].w == 0)
{ {
for (it.w = 0; it.w != 127; it.w++) { for (it = 0; it != 127; it++) {
if (!output[it.w]) { if (!output[it]) {
output[it.w] = W[3].w; output[it] = W[3].w;
output[127] = 1; output[127] = 1;
break; break;
} }

Loading…
Cancel
Save