projects
/
hashcat.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Prepare for a more dynamic #pragma unroll use
[hashcat.git]
/
OpenCL
/
m13100_a0.cl
diff --git
a/OpenCL/m13100_a0.cl
b/OpenCL/m13100_a0.cl
index
ef288a5
..
430e3d9
100644
(file)
--- a/
OpenCL/m13100_a0.cl
+++ b/
OpenCL/m13100_a0.cl
@@
-50,7
+50,9
@@
void rc4_init_16 (__local RC4_KEY *rc4_key, const u32 data[4])
__local u32 *ptr = (__local u32 *) rc4_key->S;
__local u32 *ptr = (__local u32 *) rc4_key->S;
+ #ifdef _unroll
#pragma unroll
#pragma unroll
+ #endif
for (u32 i = 0; i < 64; i++)
{
*ptr++ = v; v += a;
for (u32 i = 0; i < 64; i++)
{
*ptr++ = v; v += a;
@@
-96,7
+98,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, __global u32 *in, u32 out[4])
{
u8 rc4_next_16 (__local RC4_KEY *rc4_key, u8 i, u8 j, __global u32 *in, u32 out[4])
{
+ #ifdef _unroll
#pragma unroll
#pragma unroll
+ #endif
for (u32 k = 0; k < 4; k++)
{
u32 xor4 = 0;
for (u32 k = 0; k < 4; k++)
{
u32 xor4 = 0;