update ifdef for _rotr on aarch64

Enables compilation on aarch64 (Packet c1.large.arm)
This commit is contained in:
Edward Vielmetti 2018-12-12 07:54:33 -05:00 committed by GitHub
parent c9102ee88c
commit 8ef8224270
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -328,7 +328,7 @@ static inline uint32_t subw(uint32_t w) {
sbox[w & 0xff]; 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) { static inline uint32_t _rotr(uint32_t value, uint32_t amount) {
return (value >> amount) | (value << (-amount & 31)); return (value >> amount) | (value << (-amount & 31));
} }
@ -374,4 +374,4 @@ __m128i soft_aesdec(__m128i in, __m128i key) {
); );
return _mm_xor_si128(out, key); return _mm_xor_si128(out, key);
} }