mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-03-29 04:20:12 +00:00
Robustness fix to MBEDTLS_LIKELY
Signed-off-by: Dave Rodgman <dave.rodgman@arm.com>
This commit is contained in:
parent
5f65acb02b
commit
e9fcffd089
@ -291,8 +291,8 @@ static inline void mbedtls_xor_no_simd(unsigned char *r,
|
||||
/* Define compiler branch hints */
|
||||
#if defined(__has_builtin)
|
||||
#if __has_builtin(__builtin_expect)
|
||||
#define MBEDTLS_LIKELY(x) __builtin_expect((x), 1)
|
||||
#define MBEDTLS_UNLIKELY(x) __builtin_expect((x), 0)
|
||||
#define MBEDTLS_LIKELY(x) __builtin_expect(!!(x), 1)
|
||||
#define MBEDTLS_UNLIKELY(x) __builtin_expect(!!(x), 0)
|
||||
#endif
|
||||
#endif
|
||||
#if !defined(MBEDTLS_LIKELY)
|
||||
|
Loading…
x
Reference in New Issue
Block a user