mirror of
https://github.com/espressif/mbedtls.git
synced 2025-05-12 05:03:00 +08:00
Fix grammar issues and remove useless code
Signed-off-by: Jerry Yu <jerry.h.yu@arm.com>
This commit is contained in:
parent
4d786a732b
commit
fc2e128fc9
@ -26,12 +26,13 @@
|
|||||||
defined(__clang__) && __clang_major__ < 18 && __clang_major__ > 3
|
defined(__clang__) && __clang_major__ < 18 && __clang_major__ > 3
|
||||||
/* TODO: Re-consider above after https://reviews.llvm.org/D131064 merged.
|
/* TODO: Re-consider above after https://reviews.llvm.org/D131064 merged.
|
||||||
*
|
*
|
||||||
* The intrinsic declaration are guarded with ACLE predefined macros in clang,
|
* The intrinsic declaration are guarded by predefined ACLE macros in clang:
|
||||||
* and those macros are only enabled with command line. Define the macros can
|
* these are normally only enabled by the -march option on the command line.
|
||||||
* enable those declaration and avoid compile error on it.
|
* By defining the macros ourselves we gain access to those declarations without
|
||||||
|
* requiring -march on the command line.
|
||||||
*
|
*
|
||||||
* `arm_neon.h` might be included in any head files. On the top of this file, we
|
* `arm_neon.h` could be included by any header file, so we put these defines
|
||||||
* can guarantee this workaround always work.
|
* at the top of this file, before any includes.
|
||||||
*/
|
*/
|
||||||
#define __ARM_FEATURE_CRYPTO 1
|
#define __ARM_FEATURE_CRYPTO 1
|
||||||
#define NEED_TARGET_OPTIONS
|
#define NEED_TARGET_OPTIONS
|
||||||
|
@ -27,12 +27,13 @@
|
|||||||
__clang_major__ >= 13 && __clang_minor__ > 0 && __clang_patchlevel__ > 0
|
__clang_major__ >= 13 && __clang_minor__ > 0 && __clang_patchlevel__ > 0
|
||||||
/* TODO: Re-consider above after https://reviews.llvm.org/D131064 merged.
|
/* TODO: Re-consider above after https://reviews.llvm.org/D131064 merged.
|
||||||
*
|
*
|
||||||
* The intrinsic declaration are guarded with ACLE predefined macros in clang,
|
* The intrinsic declaration are guarded by predefined ACLE macros in clang:
|
||||||
* and those macros are only enabled with command line. Define the macros can
|
* these are normally only enabled by the -march option on the command line.
|
||||||
* enable those declaration and avoid compile error on it.
|
* By defining the macros ourselves we gain access to those declarations without
|
||||||
|
* requiring -march on the command line.
|
||||||
*
|
*
|
||||||
* `arm_neon.h` might be included in any head files. On the top of this file, we
|
* `arm_neon.h` could be included by any header file, so we put these defines
|
||||||
* can guarantee this workaround always work.
|
* at the top of this file, before any includes.
|
||||||
*/
|
*/
|
||||||
#define __ARM_FEATURE_SHA512 1
|
#define __ARM_FEATURE_SHA512 1
|
||||||
#define NEED_TARGET_OPTIONS
|
#define NEED_TARGET_OPTIONS
|
||||||
@ -43,15 +44,6 @@
|
|||||||
|
|
||||||
#include "common.h"
|
#include "common.h"
|
||||||
|
|
||||||
#if defined(MBEDTLS_POP_TARGET_PRAGMA) && \
|
|
||||||
!(defined(MBEDTLS_SHA512_USE_A64_CRYPTO_IF_PRESENT) || \
|
|
||||||
defined(MBEDTLS_SHA512_USE_A64_CRYPTO_ONLY))
|
|
||||||
#if defined(__clang__)
|
|
||||||
#pragma clang attribute pop
|
|
||||||
#endif
|
|
||||||
#undef MBEDTLS_POP_TARGET_PRAGMA
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if defined(MBEDTLS_SHA512_C) || defined(MBEDTLS_SHA384_C)
|
#if defined(MBEDTLS_SHA512_C) || defined(MBEDTLS_SHA384_C)
|
||||||
|
|
||||||
#include "mbedtls/sha512.h"
|
#include "mbedtls/sha512.h"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user