summaryrefslogtreecommitdiffstats
path: root/xmrstak/backend/cpu
diff options
context:
space:
mode:
authorJudemir Ribeiro <jribeiro@venetian.bioinfo.puc.cl>2018-04-06 22:44:21 -0300
committerJudemir Ribeiro <jribeiro@venetian.bioinfo.puc.cl>2018-04-06 22:44:21 -0300
commit52c346cd69bad3dd6b8692499e2f7be9126d1e91 (patch)
treeb024f7d3cccd4d7ada57c65ec21ce76613eb55ba /xmrstak/backend/cpu
parente726560c7d1e7788ab01096bb8976cf1d8b47b85 (diff)
parent4827d37d42596f25a4c4c320754eef259878c8f8 (diff)
downloadxmr-stak-52c346cd69bad3dd6b8692499e2f7be9126d1e91.zip
xmr-stak-52c346cd69bad3dd6b8692499e2f7be9126d1e91.tar.gz
Merge branch 'master' of https://github.com/nioroso-x3/xmr-stak
Diffstat (limited to 'xmrstak/backend/cpu')
-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 cdd7fcc..b7979ce 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