search for: 894e437

Displaying 1 result from an estimated 1 matches for "894e437".

2019 Nov 02
1
[PATCH libnbd] lib: Use GCC hints to move debug and error handling code out of hot paths.
...(h->debug) { + if_debug (h) { const gnutls_session_t session = h->sock->u.tls.session; const gnutls_cipher_algorithm_t cipher = gnutls_cipher_get (session); const gnutls_kx_algorithm_t kx = gnutls_kx_get (session); diff --git a/lib/internal.h b/lib/internal.h index 50c0a9b..894e437 100644 --- a/lib/internal.h +++ b/lib/internal.h @@ -40,6 +40,18 @@ #include "states.h" #include "unlocked.h" +/* Define unlikely macro, but only for GCC. These are used to move + * debug and error handling code out of hot paths, making the hot path + * into common function...