Fix ARMv7 build.

This commit is contained in:
XMRig 2018-04-19 19:44:17 +07:00
parent e119f7f402
commit 14576f599c

View file

@ -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) static inline __attribute__((always_inline)) __m128i _mm_aesenc_si128(__m128i v, __m128i rkey)
{ {
alignas(16) const __m128i zero = { 0 }; alignas(16) const __m128i zero = { 0 };
return veorq_u8(vaesmcq_u8(vaeseq_u8(v, zero)), rkey ); 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 */ /* this one was not implemented yet so here it is */