summaryrefslogtreecommitdiffstats
path: root/xmrstak
diff options
context:
space:
mode:
authorJudemir Ribeiro <33242603+nioroso-x3@users.noreply.github.com>2018-04-07 01:54:27 -0300
committerGitHub <noreply@github.com>2018-04-07 01:54:27 -0300
commit5e19ef1d2a86227667ab65f9096ff313e8061484 (patch)
treea628e00490325c264e131b218b44989818335dda /xmrstak
parent44f36a7f6af6f12430e2993cf1751d5ddf8cad60 (diff)
downloadxmr-stak-5e19ef1d2a86227667ab65f9096ff313e8061484.zip
xmr-stak-5e19ef1d2a86227667ab65f9096ff313e8061484.tar.gz
Update cryptonight_altivec.h
Diffstat (limited to 'xmrstak')
-rw-r--r--xmrstak/backend/cpu/crypto/cryptonight_altivec.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/xmrstak/backend/cpu/crypto/cryptonight_altivec.h b/xmrstak/backend/cpu/crypto/cryptonight_altivec.h
index cdd7fcc..96845b6 100644
--- a/xmrstak/backend/cpu/crypto/cryptonight_altivec.h
+++ b/xmrstak/backend/cpu/crypto/cryptonight_altivec.h
@@ -166,8 +166,11 @@ 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