From ed96ff242ef66547e10c68811f35b97023bbf265 Mon Sep 17 00:00:00 2001 From: Gabriele Gristina Date: Sun, 13 Feb 2022 08:02:29 +0100 Subject: [PATCH] Added missing address space on hash-type 27800 --- OpenCL/m27800_a0-optimized.cl | 2 +- OpenCL/m27800_a1-optimized.cl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/OpenCL/m27800_a0-optimized.cl b/OpenCL/m27800_a0-optimized.cl index 076bdba12..1d36d02ab 100644 --- a/OpenCL/m27800_a0-optimized.cl +++ b/OpenCL/m27800_a0-optimized.cl @@ -38,7 +38,7 @@ DECLSPEC u32 MurmurHash3(const u32 seed, PRIVATE_AS const u32 *data, const u32 s if (size % 4) { - const u8* remainder = (u8*)(data + nBlocks); + PRIVATE_AS const u8 *remainder = (PRIVATE_AS u8 *)(data + nBlocks); u32 val = 0; switch(size & 3) //Hash remaining bytes as size isn't always aligned by 4 diff --git a/OpenCL/m27800_a1-optimized.cl b/OpenCL/m27800_a1-optimized.cl index b9bbd8ddc..877560560 100644 --- a/OpenCL/m27800_a1-optimized.cl +++ b/OpenCL/m27800_a1-optimized.cl @@ -36,7 +36,7 @@ DECLSPEC u32 MurmurHash3(const u32 seed, PRIVATE_AS const u32 *data, const u32 s if (size % 4) { - const u8* remainder = (u8*)(data + nBlocks); + PRIVATE_AS const u8 *remainder = (PRIVATE_AS u8 *)(data + nBlocks); u32 val = 0; switch(size & 3) //Hash remaining bytes as size isn't always aligned by 4