Fix some OpenCL JiT compiler warnings on ROCM

This commit is contained in:
jsteube
2019-04-06 17:24:57 +02:00
parent 7e55aad703
commit c911f2bd83
12 changed files with 124 additions and 21 deletions
+1 -1
View File
@@ -65,7 +65,7 @@ CONSTANT_AS u64a keccakf_rndc[24] =
u32 j = keccakf_piln[s]; \
u32 k = keccakf_rotc[s]; \
bc0 = st[j]; \
st[j] = hc_rotl64_S (t, k); \
st[j] = hc_rotl64_S (t, k); \
t = bc0; \
}
+5 -5
View File
@@ -163,11 +163,11 @@ KERNEL_FQ void m19500_mxx (KERN_ATTR_VECTOR_ESALT (devise_hash_t))
ctx.len = 40 + 2;
sha1_update_vector (&ctx, s, salt_len);
sha1_update_vector (&ctx, glue, 2);
sha1_update_vector (&ctx, w, pw_len);
sha1_update_vector (&ctx, glue, 2);
sha1_update_vector (&ctx, k, site_key_len);
sha1_update (&ctx, s, salt_len);
sha1_update (&ctx, glue, 2);
sha1_update (&ctx, w, pw_len);
sha1_update (&ctx, glue, 2);
sha1_update (&ctx, k, site_key_len);
sha1_final (&ctx);
}