Introduce MBEDTLS_ARCH_IS_ARMV8

Signed-off-by: Dave Rodgman <dave.rodgman@arm.com>
This commit is contained in:
Dave Rodgman 2023-10-03 18:00:44 +01:00
parent ff3e9e1eb0
commit 5ed7b2dec2

View file

@ -74,6 +74,17 @@
#define MBEDTLS_ARCH_IS_X86 #define MBEDTLS_ARCH_IS_X86
#endif #endif
/* This is defined if the architecture is Armv8, or higher */
#if !defined(MBEDTLS_ARCH_IS_ARMV8)
#if defined(__ARM_ARCH)
#if __ARM_ARCH >= 8
#define MBEDTLS_ARCH_IS_ARMV8
#endif
#elif defined(MBEDTLS_ARCH_IS_ARM64)
#define MBEDTLS_ARCH_IS_ARMV8
#endif
#endif
#if defined(_MSC_VER) && !defined(_CRT_SECURE_NO_DEPRECATE) #if defined(_MSC_VER) && !defined(_CRT_SECURE_NO_DEPRECATE)
#define _CRT_SECURE_NO_DEPRECATE 1 #define _CRT_SECURE_NO_DEPRECATE 1
#endif #endif