From 14576f599c3e4113704e1457d97badcbbb8bb89e Mon Sep 17 00:00:00 2001 From: XMRig Date: Thu, 19 Apr 2018 19:44:17 +0700 Subject: [PATCH] Fix ARMv7 build. --- src/crypto/CryptoNight_arm.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/crypto/CryptoNight_arm.h b/src/crypto/CryptoNight_arm.h index fd8c19209..746de79cc 100644 --- a/src/crypto/CryptoNight_arm.h +++ b/src/crypto/CryptoNight_arm.h @@ -73,11 +73,17 @@ static inline __attribute__((always_inline)) __m128i _mm_set_epi64x(const uint64 } +#ifdef XMRIG_ARMv8 static inline __attribute__((always_inline)) __m128i _mm_aesenc_si128(__m128i v, __m128i rkey) { alignas(16) const __m128i zero = { 0 }; return veorq_u8(vaesmcq_u8(vaeseq_u8(v, zero)), rkey ); } +#else +static inline __attribute__((always_inline)) __m128i _mm_aesenc_si128(__m128i v, __m128i rkey) +{ +} +#endif /* this one was not implemented yet so here it is */