diff options
author | james <james@e7ae566f-a301-0410-adde-c780ea21d3b5> | 2008-07-16 21:50:43 +0000 |
---|---|---|
committer | james <james@e7ae566f-a301-0410-adde-c780ea21d3b5> | 2008-07-16 21:50:43 +0000 |
commit | b29452f4025bea4987d148134f80fecf897d1884 (patch) | |
tree | 9477bb5cf024eb52d15414f4ccacda8d23234ba4 /error.h | |
parent | Added likely() and unlikely() branch prediction hint macros (diff) | |
download | openvpn-b29452f4025bea4987d148134f80fecf897d1884.tar.xz |
Used unlikely() macro to tell compiler that msg() will
usually be silent.
git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@3060 e7ae566f-a301-0410-adde-c780ea21d3b5
Diffstat (limited to 'error.h')
-rw-r--r-- | error.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -142,7 +142,7 @@ extern int x_msg_line_num; bool dont_mute (unsigned int flags); /* check muting filter */ -#define MSG_TEST(flags) (((((unsigned int)flags) & M_DEBUG_LEVEL) <= x_debug_level) && dont_mute (flags)) +#define MSG_TEST(flags) (unlikely((((unsigned int)flags) & M_DEBUG_LEVEL) <= x_debug_level) && dont_mute (flags)) #if defined(HAVE_CPP_VARARG_MACRO_ISO) && !defined(__LCLINT__) # define HAVE_VARARG_MACROS |