From 8ef8224270f529d60acf23213ceab5dd656b83e1 Mon Sep 17 00:00:00 2001 From: Edward Vielmetti Date: Wed, 12 Dec 2018 07:54:33 -0500 Subject: [PATCH] update ifdef for _rotr on aarch64 Enables compilation on aarch64 (Packet c1.large.arm) --- src/softAes.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/softAes.cpp b/src/softAes.cpp index 85d58e3..86bb554 100644 --- a/src/softAes.cpp +++ b/src/softAes.cpp @@ -328,7 +328,7 @@ static inline uint32_t subw(uint32_t w) { sbox[w & 0xff]; } -#if defined(__clang__) || defined(__arm__) +#if defined(__clang__) || defined(__arm__) || defined(__aarch64__) static inline uint32_t _rotr(uint32_t value, uint32_t amount) { return (value >> amount) | (value << (-amount & 31)); } @@ -374,4 +374,4 @@ __m128i soft_aesdec(__m128i in, __m128i key) { ); return _mm_xor_si128(out, key); -} \ No newline at end of file +}