Commit d598d1db authored by Vivek Das Mohapatra's avatar Vivek Das Mohapatra
Browse files

utils.h: introduce LIKELY and UNLIKELY based on __builtin_expect

parent 8144d710
......@@ -26,6 +26,9 @@
#include "debug.h"
#define UNLIKELY(x) __builtin_expect(x, 0)
#define LIKELY(x) __builtin_expect(x, 1)
// these macros are secretly the same for elf32 & elf64:
#define ELFW_ST_TYPE(a) ELF32_ST_TYPE(a)
#define ELFW_ST_BIND(a) ELF32_ST_BIND(a)
......
Supports Markdown
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