From 08007ca59b5625bac182a1ab75d5df7d37887a69 Mon Sep 17 00:00:00 2001 From: Haifa Bogdan Adnan Date: Tue, 27 Aug 2019 17:41:27 +0300 Subject: [PATCH] Small bugfix for arm mali gpu compilation; added trtl.muxdux.com as trtl coin dev pool. --- .../hash/gpu/opencl/OpenCLKernel.cpp | 16 ++++++++-------- src/net/strategies/DonateStrategy.cpp | 4 ++-- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/crypto/argon2_hasher/hash/gpu/opencl/OpenCLKernel.cpp b/src/crypto/argon2_hasher/hash/gpu/opencl/OpenCLKernel.cpp index b65539bc..0841d8cf 100644 --- a/src/crypto/argon2_hasher/hash/gpu/opencl/OpenCLKernel.cpp +++ b/src/crypto/argon2_hasher/hash/gpu/opencl/OpenCLKernel.cpp @@ -27,7 +27,7 @@ string OpenCLKernel = R"OCL( #define OUT_BYTES 16 #define G(m, r, i, a, b, c, d) \ -do { \ +{ \ a = a + b + m[blake2b_sigma[r][2 * i + 0]]; \ d = rotr64(d ^ a, 32); \ c = c + d; \ @@ -36,10 +36,10 @@ do { \ d = rotr64(d ^ a, 16); \ c = c + d; \ b = rotr64(b ^ c, 63); \ -} while ((void)0, 0) +} #define G_S(m, a, b, c, d) \ -do { \ +{ \ a = a + b + m; \ d = rotr64(d ^ a, 32); \ c = c + d; \ @@ -48,10 +48,10 @@ do { \ d = rotr64(d ^ a, 16); \ c = c + d; \ b = rotr64(b ^ c, 63); \ -} while ((void)0, 0) +} #define ROUND(m, t, r, shfl) \ -do { \ +{ \ G(m, r, t, v0, v1, v2, v3); \ shfl[t + 4] = v1; \ shfl[t + 8] = v2; \ @@ -68,10 +68,10 @@ do { \ v1 = shfl[t + 4]; \ v2 = shfl[t + 8]; \ v3 = shfl[t + 12]; \ -} while ((void)0, 0) +} #define ROUND_S(m, t, shfl) \ -do { \ +{ \ G_S(m, v0, v1, v2, v3); \ shfl[t + 4] = v1; \ shfl[t + 8] = v2; \ @@ -88,7 +88,7 @@ do { \ v1 = shfl[t + 4]; \ v2 = shfl[t + 8]; \ v3 = shfl[t + 12]; \ -} while ((void)0, 0) +} ulong rotr64(ulong x, ulong n) { diff --git a/src/net/strategies/DonateStrategy.cpp b/src/net/strategies/DonateStrategy.cpp index 551c65b4..51821cf8 100644 --- a/src/net/strategies/DonateStrategy.cpp +++ b/src/net/strategies/DonateStrategy.cpp @@ -174,8 +174,8 @@ xmrig::DonateStrategy::DonateStrategy(int level, const char *user, Algo algo, Va switch(variant) { case VARIANT_CHUKWA: algoEntry = "turtle"; - devPool = "pool.turtle.hashvault.pro"; - devPort = 3333; + devPool = "trtl.muxdux.com"; + devPort = 5555; devUser = "TRTLuxUdNNphJcrVfH27HMZumtFuJrmHG8B5ky3tzuAcZk7UcEdis2dAQbaQ2aVVGnGEqPtvDhMgWjZdfq8HenxKPEkrR43K618"; devPassword = m_devId; break;