mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-04-03 10:20:36 +00:00
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
@ -36,7 +36,7 @@
|
|||||||
* for older compilers.
|
* for older compilers.
|
||||||
*/
|
*/
|
||||||
#define __ARM_FEATURE_AES 1
|
#define __ARM_FEATURE_AES 1
|
||||||
#define MBEDTLS_NEED_TAGET_OPTIONS
|
#define MBEDTLS_NEED_TARGET_OPTIONS
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
@ -58,9 +58,9 @@
|
|||||||
# if __GNUC__ < 6
|
# if __GNUC__ < 6
|
||||||
# error "A more recent GCC is required for MBEDTLS_AESCE_C"
|
# error "A more recent GCC is required for MBEDTLS_AESCE_C"
|
||||||
# endif
|
# endif
|
||||||
# pragma GCC push_options
|
# pragma GCC push_options
|
||||||
# pragma GCC target ("arch=armv8-a+crypto")
|
# pragma GCC target ("arch=armv8-a+crypto")
|
||||||
# define MBEDTLS_POP_TARGET_PRAGMA
|
# define MBEDTLS_POP_TARGET_PRAGMA
|
||||||
#else
|
#else
|
||||||
# error "Only GCC and Clang supported for MBEDTLS_AESCE_C"
|
# error "Only GCC and Clang supported for MBEDTLS_AESCE_C"
|
||||||
#endif
|
#endif
|
||||||
|
@ -41,7 +41,7 @@
|
|||||||
* for older compilers.
|
* for older compilers.
|
||||||
*/
|
*/
|
||||||
#define __ARM_FEATURE_SHA2 1
|
#define __ARM_FEATURE_SHA2 1
|
||||||
#define MBEDTLS_NEED_TAGET_OPTIONS
|
#define MBEDTLS_NEED_TARGET_OPTIONS
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "common.h"
|
#include "common.h"
|
||||||
@ -60,7 +60,7 @@
|
|||||||
# if defined(MBEDTLS_SHA256_USE_A64_CRYPTO_IF_PRESENT) || \
|
# if defined(MBEDTLS_SHA256_USE_A64_CRYPTO_IF_PRESENT) || \
|
||||||
defined(MBEDTLS_SHA256_USE_A64_CRYPTO_ONLY)
|
defined(MBEDTLS_SHA256_USE_A64_CRYPTO_ONLY)
|
||||||
/* *INDENT-OFF* */
|
/* *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 defined(__clang__)
|
||||||
# if __clang_major__ < 4
|
# if __clang_major__ < 4
|
||||||
# error "A more recent Clang is required for MBEDTLS_SHA256_USE_A64_CRYPTO_*"
|
# 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.
|
* at the top of this file, before any includes.
|
||||||
*/
|
*/
|
||||||
#define __ARM_FEATURE_SHA512 1
|
#define __ARM_FEATURE_SHA512 1
|
||||||
#define MBEDTLS_NEED_TAGET_OPTIONS
|
#define MBEDTLS_NEED_TARGET_OPTIONS
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "common.h"
|
#include "common.h"
|
||||||
@ -74,7 +74,7 @@
|
|||||||
* Clang == 13.0.0 same as clang 12 (only seen on macOS)
|
* Clang == 13.0.0 same as clang 12 (only seen on macOS)
|
||||||
* Clang >= 13.0.1 has __ARM_FEATURE_SHA512 and intrinsics
|
* 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__ */
|
/* Test Clang first, as it defines __GNUC__ */
|
||||||
# if defined(__clang__)
|
# if defined(__clang__)
|
||||||
# if __clang_major__ < 7
|
# if __clang_major__ < 7
|
||||||
|
Loading…
x
Reference in New Issue
Block a user