Skip to content

Commit

Permalink
tag ossl_assert not failing as being 'likely' to improve optimisation
Browse files Browse the repository at this point in the history
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 #22516)
  • Loading branch information
paulidale authored and mattcaswell committed Nov 2, 2023
1 parent 19641b4 commit 6874003
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/internal/common.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 6874003

Please sign in to comment.