Add new feature test macros

Signed-off-by: Jerry Yu <jerry.h.yu@arm.com>
This commit is contained in:
Jerry Yu 2023-03-03 15:55:56 +08:00
parent 48b999cd6e
commit ae129c3a20
2 changed files with 10 additions and 0 deletions

View file

@ -30,6 +30,11 @@
* at the top of this file, before any includes. * at the top of this file, before any includes.
*/ */
#define __ARM_FEATURE_CRYPTO 1 #define __ARM_FEATURE_CRYPTO 1
/* See: https://arm-software.github.io/acle/main/acle.html#cryptographic-extensions
*
* `__ARM_FEATURE_CRYPTO` is deprecated. Reserve it for older compilers.
*/
#define __ARM_FEATURE_AES 1
#define NEED_TARGET_OPTIONS #define NEED_TARGET_OPTIONS
#endif /* __aarch64__ && __clang__ && #endif /* __aarch64__ && __clang__ &&
!__ARM_FEATURE_CRYPTO && __clang_major__ < 18 && __clang_major__ > 3 */ !__ARM_FEATURE_CRYPTO && __clang_major__ < 18 && __clang_major__ > 3 */

View file

@ -35,6 +35,11 @@
* at the top of this file, before any includes. * at the top of this file, before any includes.
*/ */
#define __ARM_FEATURE_CRYPTO 1 #define __ARM_FEATURE_CRYPTO 1
/* See: https://arm-software.github.io/acle/main/acle.html#cryptographic-extensions
*
* `__ARM_FEATURE_CRYPTO` is deprecated. Reserve it for older compilers.
*/
#define __ARM_FEATURE_SHA2 1
#define NEED_TARGET_OPTIONS #define NEED_TARGET_OPTIONS
#endif /* __aarch64__ && __clang__ && #endif /* __aarch64__ && __clang__ &&
!__ARM_FEATURE_CRYPTO && __clang_major__ < 18 && __clang_major__ > 3 */ !__ARM_FEATURE_CRYPTO && __clang_major__ < 18 && __clang_major__ > 3 */