Introduce MBEDTLS_HAVE_NEON_INTRINSICS and simplify NEON header inclusion
Signed-off-by: Dave Rodgman <dave.rodgman@arm.com>
This commit is contained in:
parent
be09286666
commit
4ffd7c7614
1 changed files with 6 additions and 0 deletions
|
@ -33,8 +33,14 @@
|
||||||
|
|
||||||
#if defined(__ARM_NEON)
|
#if defined(__ARM_NEON)
|
||||||
#include <arm_neon.h>
|
#include <arm_neon.h>
|
||||||
|
#define MBEDTLS_HAVE_NEON_INTRINSICS
|
||||||
#endif /* __ARM_NEON */
|
#endif /* __ARM_NEON */
|
||||||
|
|
||||||
|
#if defined(_M_ARM64) || defined(_M_ARM64EC)
|
||||||
|
#include <arm64_neon.h>
|
||||||
|
#define MBEDTLS_HAVE_NEON_INTRINSICS
|
||||||
|
#endif
|
||||||
|
|
||||||
/** Helper to define a function as static except when building invasive tests.
|
/** 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
|
* If a function is only used inside its own source file and should be
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue