aboutsummaryrefslogtreecommitdiffstats
path: root/lib/util.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/util.h')
-rw-r--r--lib/util.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/util.h b/lib/util.h
index 0c4c258..508fafb 100644
--- a/lib/util.h
+++ b/lib/util.h
@@ -5,6 +5,9 @@
#define ROUND_UP(val, round_to) (((val) + (round_to - 1)) & ~(round_to - 1))
+#define likely(x) __builtin_expect(!!(x), 1)
+#define unlikely(x) __builtin_expect(!!(x), 0)
+
int libfuse_strtol(const char *str, long *res);
/**