summaryrefslogtreecommitdiff
path: root/firmware/include/asm/compiler.h
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/include/asm/compiler.h')
-rw-r--r--firmware/include/asm/compiler.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/firmware/include/asm/compiler.h b/firmware/include/asm/compiler.h
new file mode 100644
index 0000000..de4dfaa
--- /dev/null
+++ b/firmware/include/asm/compiler.h
@@ -0,0 +1,7 @@
+#ifndef _ASM_COMPILER_H
+#define _ASM_COMPILER_H
+
+#define likely(x) __builtin_expect(!!(x), 1)
+#define unlikely(x) __builtin_expect(!!(x), 0)
+
+#endif
personal git repositories of Harald Welte. Your mileage may vary