Skip to content

Commit

Permalink
Rename target option flag macro
Browse files Browse the repository at this point in the history
Signed-off-by: Jerry Yu <jerry.h.yu@arm.com>
  • Loading branch information
yuhaoth committed Mar 13, 2023
1 parent 77a010e commit 02487a2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion library/aesce.c
Expand Up @@ -36,7 +36,7 @@
* for older compilers.
*/
#define __ARM_FEATURE_AES 1
#define NEED_TARGET_OPTIONS
#define MBEDTLS_NEED_TAGET_OPTIONS
#endif

#include <string.h>
Expand Down
4 changes: 2 additions & 2 deletions library/sha256.c
Expand Up @@ -41,7 +41,7 @@
* for older compilers.
*/
#define __ARM_FEATURE_SHA2 1
#define NEED_TARGET_OPTIONS
#define MBEDTLS_NEED_TAGET_OPTIONS
#endif

#include "common.h"
Expand All @@ -60,7 +60,7 @@
# if defined(MBEDTLS_SHA256_USE_A64_CRYPTO_IF_PRESENT) || \
defined(MBEDTLS_SHA256_USE_A64_CRYPTO_ONLY)
/* *INDENT-OFF* */
# if !defined(__ARM_FEATURE_CRYPTO) || defined(NEED_TARGET_OPTIONS)
# if !defined(__ARM_FEATURE_CRYPTO) || defined(MBEDTLS_NEED_TAGET_OPTIONS)
# if defined(__clang__)
# if __clang_major__ < 4
# error "A more recent Clang is required for MBEDTLS_SHA256_USE_A64_CRYPTO_*"
Expand Down
4 changes: 2 additions & 2 deletions library/sha512.c
Expand Up @@ -35,7 +35,7 @@
* at the top of this file, before any includes.
*/
#define __ARM_FEATURE_SHA512 1
#define NEED_TARGET_OPTIONS
#define MBEDTLS_NEED_TAGET_OPTIONS
#endif

#include "common.h"
Expand Down Expand Up @@ -74,7 +74,7 @@
* Clang == 13.0.0 same as clang 12 (only seen on macOS)
* Clang >= 13.0.1 has __ARM_FEATURE_SHA512 and intrinsics
*/
# if !defined(__ARM_FEATURE_SHA512) || defined(NEED_TARGET_OPTIONS)
# if !defined(__ARM_FEATURE_SHA512) || defined(MBEDTLS_NEED_TAGET_OPTIONS)
/* Test Clang first, as it defines __GNUC__ */
# if defined(__clang__)
# if __clang_major__ < 7
Expand Down

0 comments on commit 02487a2

Please sign in to comment.