Replaced SETSHIFTEDINT() with PUTCHAR() on AMD to workaround OpenCL runtime bug

pull/895/head
jsteube 8 years ago
parent f218e85c4d
commit d3c10bdb35

@ -417,7 +417,7 @@ __kernel void m07700_m04 (__global pw_t *pws, __global const kernel_rule_t *rule
const u32 sum20 = walld0rf_magic (w0, out_len, salt_buf0, salt_len, a, b, c, d, t);
SETSHIFTEDINT (t, sum20, 0x80);
PUTCHAR (t, sum20, 0x80);
t[14] = sum20 * 8;
@ -732,7 +732,7 @@ __kernel void m07700_s04 (__global pw_t *pws, __global const kernel_rule_t *rule
const u32 sum20 = walld0rf_magic (w0, out_len, salt_buf0, salt_len, a, b, c, d, t);
SETSHIFTEDINT (t, sum20, 0x80);
PUTCHAR (t, sum20, 0x80);
t[14] = sum20 * 8;

@ -458,7 +458,7 @@ __kernel void m07700_m04 (__global pw_t *pws, __global const kernel_rule_t *rule
const u32 sum20 = walld0rf_magic (w0, pw_len, salt_buf0, salt_len, a, b, c, d, t);
SETSHIFTEDINT (t, sum20, 0x80);
PUTCHAR (t, sum20, 0x80);
t[14] = sum20 * 8;
@ -816,7 +816,7 @@ __kernel void m07700_s04 (__global pw_t *pws, __global const kernel_rule_t *rule
const u32 sum20 = walld0rf_magic (w0, pw_len, salt_buf0, salt_len, a, b, c, d, t);
SETSHIFTEDINT (t, sum20, 0x80);
PUTCHAR (t, sum20, 0x80);
t[14] = sum20 * 8;

@ -384,7 +384,7 @@ static void m07700m (u32 w0[4], u32 w1[4], u32 w2[4], u32 w3[4], const u32 pw_le
const u32 sum20 = walld0rf_magic (w0, pw_len, salt_buf0, salt_len, a, b, c, d, t);
SETSHIFTEDINT (t, sum20, 0x80);
PUTCHAR (t, sum20, 0x80);
t[14] = sum20 * 8;
@ -660,7 +660,7 @@ static void m07700s (u32 w0[4], u32 w1[4], u32 w2[4], u32 w3[4], const u32 pw_le
const u32 sum20 = walld0rf_magic (w0, pw_len, salt_buf0, salt_len, a, b, c, d, t);
SETSHIFTEDINT (t, sum20, 0x80);
PUTCHAR (t, sum20, 0x80);
t[14] = sum20 * 8;

Loading…
Cancel
Save