mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-04-18 14:42:24 +00:00
tidy up comments
Signed-off-by: Dave Rodgman <dave.rodgman@arm.com>
This commit is contained in:
parent
3e5cc175e0
commit
52e7052b6c
@ -318,15 +318,15 @@ static inline void mbedtls_xor_no_simd(unsigned char *r,
|
|||||||
#define MBEDTLS_UNLIKELY(x) x
|
#define MBEDTLS_UNLIKELY(x) x
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(__has_builtin)
|
|
||||||
#if __has_builtin(__builtin_assume)
|
|
||||||
/* MBEDTLS_ASSUME may be used to provide additional information to the compiler
|
/* MBEDTLS_ASSUME may be used to provide additional information to the compiler
|
||||||
* which can result in smaller code-size. */
|
* which can result in smaller code-size. */
|
||||||
|
#if defined(__has_builtin)
|
||||||
|
#if __has_builtin(__builtin_assume)
|
||||||
|
/* clang provides __builtin_assume */
|
||||||
#define MBEDTLS_ASSUME(x) __builtin_assume(x)
|
#define MBEDTLS_ASSUME(x) __builtin_assume(x)
|
||||||
// clang provides __builtin_assume
|
|
||||||
#elif __has_builtin(__builtin_unreachable)
|
#elif __has_builtin(__builtin_unreachable)
|
||||||
|
/* gcc can use __builtin_unreachable */
|
||||||
#define MBEDTLS_ASSUME(x) do { if (!(x)) __builtin_unreachable(); } while (0)
|
#define MBEDTLS_ASSUME(x) do { if (!(x)) __builtin_unreachable(); } while (0)
|
||||||
// For gcc, use __builtin_unreachable
|
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
#if !defined(MBEDTLS_ASSUME)
|
#if !defined(MBEDTLS_ASSUME)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user