diff --git a/library/common.h b/library/common.h index 94b8c5db3..ac6883ce1 100644 --- a/library/common.h +++ b/library/common.h @@ -31,7 +31,7 @@ #include #include -#ifdef __ARM_NEON +#if defined(__ARM_NEON) #include #endif /* __ARM_NEON */ @@ -129,7 +129,7 @@ inline void mbedtls_xor(unsigned char *r, const unsigned char *a, const unsigned { size_t i = 0; #if defined(MBEDTLS_EFFICIENT_UNALIGNED_ACCESS) -#if defined(__aarch64__) && defined(__ARM_NEON) +#if defined(__ARM_NEON) for (; (i + 16) <= n; i += 16) { uint64x2_t v1 = vld1q_u64((uint64_t *) (a + i)); uint64x2_t v2 = vld1q_u64((uint64_t *) (b + i));