Introduce MBEDTLS_ARCH_IS_ARMV8
Signed-off-by: Dave Rodgman <dave.rodgman@arm.com>
This commit is contained in:
parent
ff3e9e1eb0
commit
5ed7b2dec2
1 changed files with 11 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue