summaryrefslogtreecommitdiff
path: root/nhrpd
diff options
context:
space:
mode:
authorRuss White <russ@riw.us>2023-04-04 08:20:25 -0400
committerGitHub <noreply@github.com>2023-04-04 08:20:25 -0400
commitc0656e90406bcac5094a8bce86c03c1913a80831 (patch)
treec7f3e393f0ba2deab99c721fd2b452710a74f485 /nhrpd
parent6fc9bfb11ddf5c187bad91e1a759361d249f512f (diff)
parent71cb4a57a8a2047623497d2e4100b5c99d236b81 (diff)
Merge pull request #12837 from donaldsharp/unlikely_routemap
Unlikely routemap
Diffstat (limited to 'nhrpd')
-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)