summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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