Guards neon path
Old GCC(<7.3) reports warning in NEON path Signed-off-by: Jerry Yu <jerry.h.yu@arm.com>
This commit is contained in:
parent
5b96b81980
commit
71fada10e5
1 changed files with 3 additions and 1 deletions
|
@ -169,7 +169,9 @@ 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(__ARM_NEON)
|
||||
#if defined(__ARM_NEON) && \
|
||||
(defined(__GNUC__) && !defined(__clang__) && \
|
||||
__GNUC__ >= 7 && __GNUC_MINOR__ >= 3)
|
||||
for (; (i + 16) <= n; i += 16) {
|
||||
uint8x16_t v1 = vld1q_u8(a + i);
|
||||
uint8x16_t v2 = vld1q_u8(b + i);
|
||||
|
|
Loading…
Reference in a new issue