mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-04-18 14:42:24 +00:00
Merge pull request #7960 from daverodgman/expect-fix
This commit is contained in:
commit
7fa27a1a18
@ -295,8 +295,8 @@ static inline void mbedtls_xor_no_simd(unsigned char *r,
|
|||||||
/* Define compiler branch hints */
|
/* Define compiler branch hints */
|
||||||
#if defined(__has_builtin)
|
#if defined(__has_builtin)
|
||||||
#if __has_builtin(__builtin_expect)
|
#if __has_builtin(__builtin_expect)
|
||||||
#define MBEDTLS_LIKELY(x) __builtin_expect((x), 1)
|
#define MBEDTLS_LIKELY(x) __builtin_expect(!!(x), 1)
|
||||||
#define MBEDTLS_UNLIKELY(x) __builtin_expect((x), 0)
|
#define MBEDTLS_UNLIKELY(x) __builtin_expect(!!(x), 0)
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
#if !defined(MBEDTLS_LIKELY)
|
#if !defined(MBEDTLS_LIKELY)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user