tag ossl_assert not failing as being 'likely' to improve optimisation

Reviewed-by: Hugo Landau <hlandau@openssl.org>
Reviewed-by: Tom Cosgrove <tom.cosgrove@arm.com>
Reviewed-by: Matthias St. Pierre <Matthias.St.Pierre@ncp-e.com>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/22516)
This commit is contained in:
Pauli 2023-10-26 10:58:11 +11:00 committed by Matt Caswell
parent 19641b48af
commit 6874003e96

View File

@ -38,7 +38,7 @@
# endif
# ifdef NDEBUG
# define ossl_assert(x) ((x) != 0)
# define ossl_assert(x) likely((x) != 0)
# else
__owur static ossl_inline int ossl_assert_int(int expr, const char *exprstr,
const char *file, int line)