From a3b6e6f1b08b7f5d4b66c29f807469d5d79e1ea7 Mon Sep 17 00:00:00 2001 From: jsteube Date: Mon, 15 Apr 2019 12:11:37 +0200 Subject: [PATCH] Fix hc_rotl64_S() for AMD devices --- OpenCL/inc_common.cl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OpenCL/inc_common.cl b/OpenCL/inc_common.cl index 7001aad11..5f5c3eb45 100644 --- a/OpenCL/inc_common.cl +++ b/OpenCL/inc_common.cl @@ -377,7 +377,7 @@ DECLSPEC u64 hc_rotr64_S (const u64 a, const int n) DECLSPEC u64 hc_rotl64_S (const u64 a, const int n) { - return hc_rotr64_S (a, n); + return hc_rotr64_S (a, 64 - n); } #if HAS_VPERM