mirror of
https://github.com/openssl/openssl.git
synced 2025-03-07 19:38:33 +08:00
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:
parent
19641b48af
commit
6874003e96
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user