X-Git-Url: https://www.flypig.org.uk/git/?a=blobdiff_plain;f=OpenCL%2Fm10400_a3.cl;h=92ebfe5e2afaedbecdf6ca1d8520a2ceb39ef101;hb=c79bed3b7de4ac974a3ea5d3b498f4fe712f93b9;hp=f91a3488c25ad69558ec83724bab60201c4869f5;hpb=34c3557d507d85ed2c6f2e036d226776e0ffbf72;p=hashcat.git diff --git a/OpenCL/m10400_a3.cl b/OpenCL/m10400_a3.cl index f91a348..92ebfe5 100644 --- a/OpenCL/m10400_a3.cl +++ b/OpenCL/m10400_a3.cl @@ -59,7 +59,9 @@ void rc4_init_16 (__local RC4_KEY *rc4_key, const u32 data[4]) __local u32 *ptr = (__local u32 *) rc4_key->S; + #ifdef _unroll #pragma unroll + #endif for (u32 i = 0; i < 64; i++) { ptr[i] = v; v += a; @@ -73,7 +75,9 @@ void rc4_init_16 (__local RC4_KEY *rc4_key, const u32 data[4]) u32 j = 0; + #ifdef _unroll #pragma unroll + #endif for (u32 i = 0; i < 255; i += 5) { j += rc4_key->S[i + 0] + d0; swap (rc4_key, i + 0, j); @@ -88,7 +92,9 @@ void rc4_init_16 (__local RC4_KEY *rc4_key, const u32 data[4]) u8 rc4_next_16 (__local RC4_KEY *rc4_key, u8 i, u8 j, __constant u32 *in, u32 out[4]) { - #pragma unroll 4 + #ifdef _unroll + #pragma unroll + #endif for (u32 k = 0; k < 4; k++) { u32 xor4 = 0;