aboutsummaryrefslogtreecommitdiff
path: root/error.h
diff options
context:
space:
mode:
authorjames <james@e7ae566f-a301-0410-adde-c780ea21d3b5>2008-07-16 21:50:43 +0000
committerjames <james@e7ae566f-a301-0410-adde-c780ea21d3b5>2008-07-16 21:50:43 +0000
commitb29452f4025bea4987d148134f80fecf897d1884 (patch)
tree9477bb5cf024eb52d15414f4ccacda8d23234ba4 /error.h
parentAdded likely() and unlikely() branch prediction hint macros (diff)
downloadopenvpn-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.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/error.h b/error.h
index 25092a0..f7c5d77 100644
--- a/error.h
+++ b/error.h
@@ -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