fix wrong typo and indent issue
Signed-off-by: Jerry Yu <jerry.h.yu@arm.com>
This commit is contained in:
parent
fbf9523449
commit
b28d55b242
3 changed files with 8 additions and 8 deletions
|
@ -36,7 +36,7 @@
|
|||
* for older compilers.
|
||||
*/
|
||||
#define __ARM_FEATURE_AES 1
|
||||
#define MBEDTLS_NEED_TAGET_OPTIONS
|
||||
#define MBEDTLS_NEED_TARGET_OPTIONS
|
||||
#endif
|
||||
|
||||
#include <string.h>
|
||||
|
@ -58,9 +58,9 @@
|
|||
# if __GNUC__ < 6
|
||||
# error "A more recent GCC is required for MBEDTLS_AESCE_C"
|
||||
# endif
|
||||
# pragma GCC push_options
|
||||
# pragma GCC target ("arch=armv8-a+crypto")
|
||||
# define MBEDTLS_POP_TARGET_PRAGMA
|
||||
# pragma GCC push_options
|
||||
# pragma GCC target ("arch=armv8-a+crypto")
|
||||
# define MBEDTLS_POP_TARGET_PRAGMA
|
||||
#else
|
||||
# error "Only GCC and Clang supported for MBEDTLS_AESCE_C"
|
||||
#endif
|
||||
|
|
|
@ -41,7 +41,7 @@
|
|||
* for older compilers.
|
||||
*/
|
||||
#define __ARM_FEATURE_SHA2 1
|
||||
#define MBEDTLS_NEED_TAGET_OPTIONS
|
||||
#define MBEDTLS_NEED_TARGET_OPTIONS
|
||||
#endif
|
||||
|
||||
#include "common.h"
|
||||
|
@ -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(MBEDTLS_NEED_TAGET_OPTIONS)
|
||||
# if !defined(__ARM_FEATURE_CRYPTO) || defined(MBEDTLS_NEED_TARGET_OPTIONS)
|
||||
# if defined(__clang__)
|
||||
# if __clang_major__ < 4
|
||||
# error "A more recent Clang is required for MBEDTLS_SHA256_USE_A64_CRYPTO_*"
|
||||
|
|
|
@ -35,7 +35,7 @@
|
|||
* at the top of this file, before any includes.
|
||||
*/
|
||||
#define __ARM_FEATURE_SHA512 1
|
||||
#define MBEDTLS_NEED_TAGET_OPTIONS
|
||||
#define MBEDTLS_NEED_TARGET_OPTIONS
|
||||
#endif
|
||||
|
||||
#include "common.h"
|
||||
|
@ -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(MBEDTLS_NEED_TAGET_OPTIONS)
|
||||
# if !defined(__ARM_FEATURE_SHA512) || defined(MBEDTLS_NEED_TARGET_OPTIONS)
|
||||
/* Test Clang first, as it defines __GNUC__ */
|
||||
# if defined(__clang__)
|
||||
# if __clang_major__ < 7
|
||||
|
|
Loading…
Reference in a new issue