From 44f36a7f6af6f12430e2993cf1751d5ddf8cad60 Mon Sep 17 00:00:00 2001 From: Judemir Ribeiro Date: Fri, 6 Apr 2018 22:47:12 -0300 Subject: Recovered some power8 speed (3200h/s on monero7 with 20 core power8) --- xmrstak/backend/cpu/crypto/cryptonight_altivec.h | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'xmrstak/backend') diff --git a/xmrstak/backend/cpu/crypto/cryptonight_altivec.h b/xmrstak/backend/cpu/crypto/cryptonight_altivec.h index b7979ce..cdd7fcc 100644 --- a/xmrstak/backend/cpu/crypto/cryptonight_altivec.h +++ b/xmrstak/backend/cpu/crypto/cryptonight_altivec.h @@ -166,12 +166,8 @@ static inline void aes_genkey_be(const __m128i* memory, __m128i* k0, __m128i* k1 { __m128i xout0, xout2; - xout0 = vec_ld(0,memory); - xout2 = vec_ld(16,memory); - - xout0 = v_rev(xout0); - xout2 = v_rev(xout2); - + xout0 = v_rev(vec_ld(0,memory)); + xout2 = v_rev(vec_ld(16,memory)); *k0 = xout0; *k1 = xout2; -- cgit v1.1