Commit 12cda20a authored by Mark Andrews's avatar Mark Andrews Committed by Ondřej Surý

simplify ISC_LIKELY/ISC_UNLIKELY for CPPCHECK

(cherry picked from commit 6c2e138d)
parent 26caad3c
......@@ -15,6 +15,10 @@
/*%
* Performance
*/
#ifdef CPPCHECK
#define ISC_LIKELY(x) (x)
#define ISC_UNLIKELY(x) (x)
#else
#ifdef HAVE_BUILTIN_EXPECT
#define ISC_LIKELY(x) __builtin_expect((x), 1)
#define ISC_UNLIKELY(x) __builtin_expect((x), 0)
......@@ -22,5 +26,6 @@
#define ISC_LIKELY(x) (x)
#define ISC_UNLIKELY(x) (x)
#endif
#endif
#endif /* ISC_LIKELY_H */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment