Skip to content

Commit

Permalink
add likely
Browse files Browse the repository at this point in the history
  • Loading branch information
fredrikwidlund committed Jun 11, 2020
1 parent 80834ea commit bc50e79
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/dynamic.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
#define DYNAMIC_VERSION_MINOR 1
#define DYNAMIC_VERSION_PATCH 0

#define dynamic_likely(x) __builtin_expect(!!(x), 1)
#define dynamic_unlikely(x) __builtin_expect(!!(x), 0)

#ifdef __cplusplus
extern "C" {
#endif
Expand Down

0 comments on commit bc50e79

Please sign in to comment.