Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Simon McVittie
libcapsule
Commits
d598d1db
Commit
d598d1db
authored
Jan 03, 2018
by
Vivek Das Mohapatra
Browse files
utils.h: introduce LIKELY and UNLIKELY based on __builtin_expect
parent
8144d710
Changes
1
Hide whitespace changes
Inline
Side-by-side
utils/utils.h
View file @
d598d1db
...
...
@@ -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)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment