From 4ffd7c7614b8f6a9a083de0b9e8c5588ca987e4a Mon Sep 17 00:00:00 2001 From: Dave Rodgman Date: Tue, 5 Sep 2023 11:43:02 +0100 Subject: [PATCH] Introduce MBEDTLS_HAVE_NEON_INTRINSICS and simplify NEON header inclusion Signed-off-by: Dave Rodgman --- library/common.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/library/common.h b/library/common.h index f83821691..c080af043 100644 --- a/library/common.h +++ b/library/common.h @@ -33,8 +33,14 @@ #if defined(__ARM_NEON) #include +#define MBEDTLS_HAVE_NEON_INTRINSICS #endif /* __ARM_NEON */ +#if defined(_M_ARM64) || defined(_M_ARM64EC) +#include +#define MBEDTLS_HAVE_NEON_INTRINSICS +#endif + /** Helper to define a function as static except when building invasive tests. * * If a function is only used inside its own source file and should be