From 6874003e96b64b665acc20f65a5bcb3e4d315ce4 Mon Sep 17 00:00:00 2001 From: Pauli Date: Thu, 26 Oct 2023 10:58:11 +1100 Subject: [PATCH] tag ossl_assert not failing as being 'likely' to improve optimisation Reviewed-by: Hugo Landau Reviewed-by: Tom Cosgrove Reviewed-by: Matthias St. Pierre Reviewed-by: Tomas Mraz Reviewed-by: Matt Caswell (Merged from https://github.com/openssl/openssl/pull/22516) --- include/internal/common.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/internal/common.h b/include/internal/common.h index 15666f11108..a9e3b7a729d 100644 --- a/include/internal/common.h +++ b/include/internal/common.h @@ -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) -- 2.47.2