Replace __kernel, __constant, __global and __local qualifiers with macro for better control
This commit is contained in:
@@ -25,7 +25,7 @@
|
||||
#define uint_to_hex_lower8(i) (u32x) (l_bin2asc[(i).s0], l_bin2asc[(i).s1], l_bin2asc[(i).s2], l_bin2asc[(i).s3], l_bin2asc[(i).s4], l_bin2asc[(i).s5], l_bin2asc[(i).s6], l_bin2asc[(i).s7], l_bin2asc[(i).s8], l_bin2asc[(i).s9], l_bin2asc[(i).sa], l_bin2asc[(i).sb], l_bin2asc[(i).sc], l_bin2asc[(i).sd], l_bin2asc[(i).se], l_bin2asc[(i).sf])
|
||||
#endif
|
||||
|
||||
DECLSPEC void m04010m (u32 *w0, u32 *w1, u32 *w2, u32 *w3, const u32 pw_len, KERN_ATTR_BASIC (), __local u32 *l_bin2asc)
|
||||
DECLSPEC void m04010m (u32 *w0, u32 *w1, u32 *w2, u32 *w3, const u32 pw_len, KERN_ATTR_BASIC (), LOCAL_AS u32 *l_bin2asc)
|
||||
{
|
||||
/**
|
||||
* modifier
|
||||
@@ -334,7 +334,7 @@ DECLSPEC void m04010m (u32 *w0, u32 *w1, u32 *w2, u32 *w3, const u32 pw_len, KER
|
||||
}
|
||||
}
|
||||
|
||||
DECLSPEC void m04010s (u32 *w0, u32 *w1, u32 *w2, u32 *w3, const u32 pw_len, KERN_ATTR_BASIC (), __local u32 *l_bin2asc)
|
||||
DECLSPEC void m04010s (u32 *w0, u32 *w1, u32 *w2, u32 *w3, const u32 pw_len, KERN_ATTR_BASIC (), LOCAL_AS u32 *l_bin2asc)
|
||||
{
|
||||
/**
|
||||
* modifier
|
||||
@@ -658,7 +658,7 @@ DECLSPEC void m04010s (u32 *w0, u32 *w1, u32 *w2, u32 *w3, const u32 pw_len, KER
|
||||
}
|
||||
}
|
||||
|
||||
__kernel void m04010_m04 (KERN_ATTR_BASIC ())
|
||||
KERNEL_FQ void m04010_m04 (KERN_ATTR_BASIC ())
|
||||
{
|
||||
/**
|
||||
* base
|
||||
@@ -672,7 +672,7 @@ __kernel void m04010_m04 (KERN_ATTR_BASIC ())
|
||||
* bin2asc table
|
||||
*/
|
||||
|
||||
__local u32 l_bin2asc[256];
|
||||
LOCAL_AS u32 l_bin2asc[256];
|
||||
|
||||
for (u32 i = lid; i < 256; i += lsz)
|
||||
{
|
||||
@@ -728,7 +728,7 @@ __kernel void m04010_m04 (KERN_ATTR_BASIC ())
|
||||
m04010m (w0, w1, w2, w3, pw_len, pws, rules_buf, combs_buf, bfs_buf, tmps, hooks, bitmaps_buf_s1_a, bitmaps_buf_s1_b, bitmaps_buf_s1_c, bitmaps_buf_s1_d, bitmaps_buf_s2_a, bitmaps_buf_s2_b, bitmaps_buf_s2_c, bitmaps_buf_s2_d, plains_buf, digests_buf, hashes_shown, salt_bufs, esalt_bufs, d_return_buf, d_extra0_buf, d_extra1_buf, d_extra2_buf, d_extra3_buf, bitmap_mask, bitmap_shift1, bitmap_shift2, salt_pos, loop_pos, loop_cnt, il_cnt, digests_cnt, digests_offset, combs_mode, gid_max, l_bin2asc);
|
||||
}
|
||||
|
||||
__kernel void m04010_m08 (KERN_ATTR_BASIC ())
|
||||
KERNEL_FQ void m04010_m08 (KERN_ATTR_BASIC ())
|
||||
{
|
||||
/**
|
||||
* base
|
||||
@@ -776,7 +776,7 @@ __kernel void m04010_m08 (KERN_ATTR_BASIC ())
|
||||
* bin2asc table
|
||||
*/
|
||||
|
||||
__local u32 l_bin2asc[256];
|
||||
LOCAL_AS u32 l_bin2asc[256];
|
||||
|
||||
for (u32 i = lid; i < 256; i += lsz)
|
||||
{
|
||||
@@ -798,7 +798,7 @@ __kernel void m04010_m08 (KERN_ATTR_BASIC ())
|
||||
m04010m (w0, w1, w2, w3, pw_len, pws, rules_buf, combs_buf, bfs_buf, tmps, hooks, bitmaps_buf_s1_a, bitmaps_buf_s1_b, bitmaps_buf_s1_c, bitmaps_buf_s1_d, bitmaps_buf_s2_a, bitmaps_buf_s2_b, bitmaps_buf_s2_c, bitmaps_buf_s2_d, plains_buf, digests_buf, hashes_shown, salt_bufs, esalt_bufs, d_return_buf, d_extra0_buf, d_extra1_buf, d_extra2_buf, d_extra3_buf, bitmap_mask, bitmap_shift1, bitmap_shift2, salt_pos, loop_pos, loop_cnt, il_cnt, digests_cnt, digests_offset, combs_mode, gid_max, l_bin2asc);
|
||||
}
|
||||
|
||||
__kernel void m04010_m16 (KERN_ATTR_BASIC ())
|
||||
KERNEL_FQ void m04010_m16 (KERN_ATTR_BASIC ())
|
||||
{
|
||||
/**
|
||||
* base
|
||||
@@ -846,7 +846,7 @@ __kernel void m04010_m16 (KERN_ATTR_BASIC ())
|
||||
* bin2asc table
|
||||
*/
|
||||
|
||||
__local u32 l_bin2asc[256];
|
||||
LOCAL_AS u32 l_bin2asc[256];
|
||||
|
||||
for (u32 i = lid; i < 256; i += lsz)
|
||||
{
|
||||
@@ -868,7 +868,7 @@ __kernel void m04010_m16 (KERN_ATTR_BASIC ())
|
||||
m04010m (w0, w1, w2, w3, pw_len, pws, rules_buf, combs_buf, bfs_buf, tmps, hooks, bitmaps_buf_s1_a, bitmaps_buf_s1_b, bitmaps_buf_s1_c, bitmaps_buf_s1_d, bitmaps_buf_s2_a, bitmaps_buf_s2_b, bitmaps_buf_s2_c, bitmaps_buf_s2_d, plains_buf, digests_buf, hashes_shown, salt_bufs, esalt_bufs, d_return_buf, d_extra0_buf, d_extra1_buf, d_extra2_buf, d_extra3_buf, bitmap_mask, bitmap_shift1, bitmap_shift2, salt_pos, loop_pos, loop_cnt, il_cnt, digests_cnt, digests_offset, combs_mode, gid_max, l_bin2asc);
|
||||
}
|
||||
|
||||
__kernel void m04010_s04 (KERN_ATTR_BASIC ())
|
||||
KERNEL_FQ void m04010_s04 (KERN_ATTR_BASIC ())
|
||||
{
|
||||
/**
|
||||
* base
|
||||
@@ -916,7 +916,7 @@ __kernel void m04010_s04 (KERN_ATTR_BASIC ())
|
||||
* bin2asc table
|
||||
*/
|
||||
|
||||
__local u32 l_bin2asc[256];
|
||||
LOCAL_AS u32 l_bin2asc[256];
|
||||
|
||||
for (u32 i = lid; i < 256; i += lsz)
|
||||
{
|
||||
@@ -938,7 +938,7 @@ __kernel void m04010_s04 (KERN_ATTR_BASIC ())
|
||||
m04010s (w0, w1, w2, w3, pw_len, pws, rules_buf, combs_buf, bfs_buf, tmps, hooks, bitmaps_buf_s1_a, bitmaps_buf_s1_b, bitmaps_buf_s1_c, bitmaps_buf_s1_d, bitmaps_buf_s2_a, bitmaps_buf_s2_b, bitmaps_buf_s2_c, bitmaps_buf_s2_d, plains_buf, digests_buf, hashes_shown, salt_bufs, esalt_bufs, d_return_buf, d_extra0_buf, d_extra1_buf, d_extra2_buf, d_extra3_buf, bitmap_mask, bitmap_shift1, bitmap_shift2, salt_pos, loop_pos, loop_cnt, il_cnt, digests_cnt, digests_offset, combs_mode, gid_max, l_bin2asc);
|
||||
}
|
||||
|
||||
__kernel void m04010_s08 (KERN_ATTR_BASIC ())
|
||||
KERNEL_FQ void m04010_s08 (KERN_ATTR_BASIC ())
|
||||
{
|
||||
/**
|
||||
* base
|
||||
@@ -986,7 +986,7 @@ __kernel void m04010_s08 (KERN_ATTR_BASIC ())
|
||||
* bin2asc table
|
||||
*/
|
||||
|
||||
__local u32 l_bin2asc[256];
|
||||
LOCAL_AS u32 l_bin2asc[256];
|
||||
|
||||
for (u32 i = lid; i < 256; i += lsz)
|
||||
{
|
||||
@@ -1008,7 +1008,7 @@ __kernel void m04010_s08 (KERN_ATTR_BASIC ())
|
||||
m04010s (w0, w1, w2, w3, pw_len, pws, rules_buf, combs_buf, bfs_buf, tmps, hooks, bitmaps_buf_s1_a, bitmaps_buf_s1_b, bitmaps_buf_s1_c, bitmaps_buf_s1_d, bitmaps_buf_s2_a, bitmaps_buf_s2_b, bitmaps_buf_s2_c, bitmaps_buf_s2_d, plains_buf, digests_buf, hashes_shown, salt_bufs, esalt_bufs, d_return_buf, d_extra0_buf, d_extra1_buf, d_extra2_buf, d_extra3_buf, bitmap_mask, bitmap_shift1, bitmap_shift2, salt_pos, loop_pos, loop_cnt, il_cnt, digests_cnt, digests_offset, combs_mode, gid_max, l_bin2asc);
|
||||
}
|
||||
|
||||
__kernel void m04010_s16 (KERN_ATTR_BASIC ())
|
||||
KERNEL_FQ void m04010_s16 (KERN_ATTR_BASIC ())
|
||||
{
|
||||
/**
|
||||
* base
|
||||
@@ -1022,7 +1022,7 @@ __kernel void m04010_s16 (KERN_ATTR_BASIC ())
|
||||
* bin2asc table
|
||||
*/
|
||||
|
||||
__local u32 l_bin2asc[256];
|
||||
LOCAL_AS u32 l_bin2asc[256];
|
||||
|
||||
for (u32 i = lid; i < 256; i += lsz)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user