summaryrefslogtreecommitdiffstats
path: root/xmrstak
diff options
context:
space:
mode:
authorJudemir Ribeiro <33242603+nioroso-x3@users.noreply.github.com>2018-04-06 13:38:49 -0300
committerGitHub <noreply@github.com>2018-04-06 13:38:49 -0300
commit4827d37d42596f25a4c4c320754eef259878c8f8 (patch)
tree60458210196e04e6e6d322a38543c020fa4e3869 /xmrstak
parenta0d5aa2783f5d80ee42f821fee48ae6e44d25bfe (diff)
downloadxmr-stak-4827d37d42596f25a4c4c320754eef259878c8f8.zip
xmr-stak-4827d37d42596f25a4c4c320754eef259878c8f8.tar.gz
Update cryptonight_altivec.h
Fix for gcc 7 behavior
Diffstat (limited to 'xmrstak')
-rw-r--r--xmrstak/backend/cpu/crypto/cryptonight_altivec.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/xmrstak/backend/cpu/crypto/cryptonight_altivec.h b/xmrstak/backend/cpu/crypto/cryptonight_altivec.h
index 3727a01..0fa08e1 100644
--- a/xmrstak/backend/cpu/crypto/cryptonight_altivec.h
+++ b/xmrstak/backend/cpu/crypto/cryptonight_altivec.h
@@ -166,8 +166,12 @@ static inline void aes_genkey_be(const __m128i* memory, __m128i* k0, __m128i* k1
{
__m128i xout0, xout2;
- xout0 = v_rev(vec_ld(0,memory));
- xout2 = v_rev(vec_ld(16,memory));
+ xout0 = vec_ld(0,memory);
+ xout2 = vec_ld(16,memory);
+
+ xout0 = v_rev(xout0);
+ xout2 = v_rev(xout2);
+
*k0 = xout0;
*k1 = xout2;
OpenPOWER on IntegriCloud