mirror of
https://github.com/hashcat/hashcat.git
synced 2025-08-01 03:18:17 +00:00
Adding missing explicit address space qualifier into MurmurHash2 kernels to support Metal
This commit is contained in:
parent
2507447006
commit
2858f53ce7
@ -81,10 +81,10 @@ KERNEL_FQ KERNEL_FA void m34200_mxx (KERN_ATTR_BASIC ())
|
||||
*/
|
||||
|
||||
PRIVATE_AS u8 combined_buf[256] = {0};
|
||||
const u32 *comb_ptr = (u32*) combined_buf;
|
||||
PRIVATE_AS const u32 *comb_ptr = (PRIVATE_AS const u32 *) combined_buf;
|
||||
|
||||
// copy left buffer
|
||||
GLOBAL_AS const u8 *left = (GLOBAL_AS const u8*) pws[gid].i;
|
||||
GLOBAL_AS const u8 *left = (GLOBAL_AS const u8 *) pws[gid].i;
|
||||
// probably bad for performance
|
||||
for (u32 i = 0; i < pws[gid].pw_len; i++)
|
||||
{
|
||||
@ -107,7 +107,7 @@ KERNEL_FQ KERNEL_FA void m34200_mxx (KERN_ATTR_BASIC ())
|
||||
for (u32 il_pos = 0; il_pos < IL_CNT; il_pos++)
|
||||
{
|
||||
// copy right buffer
|
||||
GLOBAL_AS const u8 *right = (GLOBAL_AS const u8*) combs_buf[il_pos].i;
|
||||
GLOBAL_AS const u8 *right = (GLOBAL_AS const u8 *) combs_buf[il_pos].i;
|
||||
for (u32 i = 0; i < combs_buf[il_pos].pw_len; i++)
|
||||
{
|
||||
combined_buf[i + pws[gid].pw_len] = right[i];
|
||||
@ -139,10 +139,10 @@ KERNEL_FQ KERNEL_FA void m34200_sxx (KERN_ATTR_BASIC ())
|
||||
*/
|
||||
|
||||
PRIVATE_AS u8 combined_buf[256] = {0};
|
||||
const u32 *comb_ptr = (u32*) combined_buf;
|
||||
PRIVATE_AS const u32 *comb_ptr = (PRIVATE_AS const u32 *) combined_buf;
|
||||
|
||||
// copy left buffer
|
||||
GLOBAL_AS const u8 *left = (GLOBAL_AS const u8*) pws[gid].i;
|
||||
GLOBAL_AS const u8 *left = (GLOBAL_AS const u8 *) pws[gid].i;
|
||||
// probably bad for performance
|
||||
for (u32 i = 0; i < pws[gid].pw_len; i++)
|
||||
{
|
||||
@ -177,7 +177,7 @@ KERNEL_FQ KERNEL_FA void m34200_sxx (KERN_ATTR_BASIC ())
|
||||
for (u32 il_pos = 0; il_pos < IL_CNT; il_pos++)
|
||||
{
|
||||
// copy right buffer
|
||||
GLOBAL_AS const u8 *right = (GLOBAL_AS const u8*) combs_buf[il_pos].i;
|
||||
GLOBAL_AS const u8 *right = (GLOBAL_AS const u8 *) combs_buf[il_pos].i;
|
||||
for (u32 i = 0; i < combs_buf[il_pos].pw_len; i++)
|
||||
{
|
||||
combined_buf[i + pws[gid].pw_len] = right[i];
|
||||
|
@ -81,10 +81,10 @@ KERNEL_FQ KERNEL_FA void m34201_mxx (KERN_ATTR_BASIC ())
|
||||
*/
|
||||
|
||||
PRIVATE_AS u8 combined_buf[256] = {0};
|
||||
const u32 *comb_ptr = (u32*) combined_buf;
|
||||
PRIVATE_AS const u32 *comb_ptr = (PRIVATE_AS const u32 *) combined_buf;
|
||||
|
||||
// copy left buffer
|
||||
GLOBAL_AS const u8 *left = (GLOBAL_AS const u8*) pws[gid].i;
|
||||
GLOBAL_AS const u8 *left = (GLOBAL_AS const u8 *) pws[gid].i;
|
||||
// probably bad for performance
|
||||
for (u32 i = 0; i < pws[gid].pw_len; i++)
|
||||
{
|
||||
@ -98,7 +98,7 @@ KERNEL_FQ KERNEL_FA void m34201_mxx (KERN_ATTR_BASIC ())
|
||||
for (u32 il_pos = 0; il_pos < IL_CNT; il_pos++)
|
||||
{
|
||||
// copy right buffer
|
||||
GLOBAL_AS const u8 *right = (GLOBAL_AS const u8*) combs_buf[il_pos].i;
|
||||
GLOBAL_AS const u8 *right = (GLOBAL_AS const u8 *) combs_buf[il_pos].i;
|
||||
for (u32 i = 0; i < combs_buf[il_pos].pw_len; i++)
|
||||
{
|
||||
combined_buf[i + pws[gid].pw_len] = right[i];
|
||||
@ -130,10 +130,10 @@ KERNEL_FQ KERNEL_FA void m34201_sxx (KERN_ATTR_BASIC ())
|
||||
*/
|
||||
|
||||
PRIVATE_AS u8 combined_buf[256] = {0};
|
||||
const u32 *comb_ptr = (u32*) combined_buf;
|
||||
PRIVATE_AS const u32 *comb_ptr = (PRIVATE_AS const u32 *) combined_buf;
|
||||
|
||||
// copy left buffer
|
||||
GLOBAL_AS const u8 *left = (GLOBAL_AS const u8*) pws[gid].i;
|
||||
GLOBAL_AS const u8 *left = (GLOBAL_AS const u8 *) pws[gid].i;
|
||||
// probably bad for performance
|
||||
for (u32 i = 0; i < pws[gid].pw_len; i++)
|
||||
{
|
||||
@ -159,7 +159,7 @@ KERNEL_FQ KERNEL_FA void m34201_sxx (KERN_ATTR_BASIC ())
|
||||
for (u32 il_pos = 0; il_pos < IL_CNT; il_pos++)
|
||||
{
|
||||
// copy right buffer
|
||||
GLOBAL_AS const u8 *right = (GLOBAL_AS const u8*) combs_buf[il_pos].i;
|
||||
GLOBAL_AS const u8 *right = (GLOBAL_AS const u8 *) combs_buf[il_pos].i;
|
||||
for (u32 i = 0; i < combs_buf[il_pos].pw_len; i++)
|
||||
{
|
||||
combined_buf[i + pws[gid].pw_len] = right[i];
|
||||
|
@ -82,10 +82,10 @@ KERNEL_FQ KERNEL_FA void m34211_mxx (KERN_ATTR_BASIC ())
|
||||
*/
|
||||
|
||||
PRIVATE_AS u8 combined_buf[256] = {0};
|
||||
const u32 *comb_ptr = (u32*) combined_buf;
|
||||
PRIVATE_AS const u32 *comb_ptr = (PRIVATE_AS const u32 *) combined_buf;
|
||||
|
||||
// copy left buffer
|
||||
GLOBAL_AS const u8 *left = (GLOBAL_AS const u8*) pws[gid].i;
|
||||
GLOBAL_AS const u8 *left = (GLOBAL_AS const u8 *) pws[gid].i;
|
||||
// probably bad for performance
|
||||
for (u32 i = 0; i < pws[gid].pw_len; i++)
|
||||
{
|
||||
@ -99,7 +99,7 @@ KERNEL_FQ KERNEL_FA void m34211_mxx (KERN_ATTR_BASIC ())
|
||||
for (u32 il_pos = 0; il_pos < IL_CNT; il_pos++)
|
||||
{
|
||||
// copy right buffer
|
||||
GLOBAL_AS const u8 *right = (GLOBAL_AS const u8*) combs_buf[il_pos].i;
|
||||
GLOBAL_AS const u8 *right = (GLOBAL_AS const u8 *) combs_buf[il_pos].i;
|
||||
for (u32 i = 0; i < combs_buf[il_pos].pw_len; i++)
|
||||
{
|
||||
combined_buf[i + pws[gid].pw_len] = right[i];
|
||||
@ -129,10 +129,10 @@ KERNEL_FQ KERNEL_FA void m34211_sxx (KERN_ATTR_BASIC ())
|
||||
*/
|
||||
|
||||
PRIVATE_AS u8 combined_buf[256] = {0};
|
||||
const u32 *comb_ptr = (u32*) combined_buf;
|
||||
PRIVATE_AS const u32 *comb_ptr = (PRIVATE_AS const u32 *) combined_buf;
|
||||
|
||||
// copy left buffer
|
||||
GLOBAL_AS const u8 *left = (GLOBAL_AS const u8*) pws[gid].i;
|
||||
GLOBAL_AS const u8 *left = (GLOBAL_AS const u8 *) pws[gid].i;
|
||||
// probably bad for performance
|
||||
for (u32 i = 0; i < pws[gid].pw_len; i++)
|
||||
{
|
||||
@ -158,7 +158,7 @@ KERNEL_FQ KERNEL_FA void m34211_sxx (KERN_ATTR_BASIC ())
|
||||
for (u32 il_pos = 0; il_pos < IL_CNT; il_pos++)
|
||||
{
|
||||
// copy right buffer
|
||||
GLOBAL_AS const u8 *right = (GLOBAL_AS const u8*) combs_buf[il_pos].i;
|
||||
GLOBAL_AS const u8 *right = (GLOBAL_AS const u8 *) combs_buf[il_pos].i;
|
||||
for (u32 i = 0; i < combs_buf[il_pos].pw_len; i++)
|
||||
{
|
||||
combined_buf[i + pws[gid].pw_len] = right[i];
|
||||
|
Loading…
Reference in New Issue
Block a user