summaryrefslogtreecommitdiff
path: root/nhrpd/debug.h
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@nvidia.com>2023-02-17 14:56:48 -0500
committerDonald Sharp <sharpd@nvidia.com>2023-03-23 07:54:56 -0400
commit6a72124df9cfc4ec7dabddfae5b3ab63a1069b87 (patch)
treefafd604e588389250d17ffe0317a83473eda7845 /nhrpd/debug.h
parent9cc377d4d7ccae8a318d0162c5d0d6a6754d8b0a (diff)
babeld, lib, nhrpd: Add likely and unlikely macros
We have 2 competing versions of likely and unlikely in babeld and nhrpd. Standardize onto lower case versions and consolidate in the code. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to 'nhrpd/debug.h')
-rw-r--r--nhrpd/debug.h8
1 files changed, 0 insertions, 8 deletions
diff --git a/nhrpd/debug.h b/nhrpd/debug.h
index e9428fa90a..f2c7022ad4 100644
--- a/nhrpd/debug.h
+++ b/nhrpd/debug.h
@@ -1,13 +1,5 @@
#include "log.h"
-#if defined(__GNUC__) && (__GNUC__ >= 3)
-#define likely(_x) __builtin_expect(!!(_x), 1)
-#define unlikely(_x) __builtin_expect(!!(_x), 0)
-#else
-#define likely(_x) !!(_x)
-#define unlikely(_x) !!(_x)
-#endif
-
#define NHRP_DEBUG_COMMON (1 << 0)
#define NHRP_DEBUG_KERNEL (1 << 1)
#define NHRP_DEBUG_IF (1 << 2)