refactor: decouple i386 specific instruction invocation
[lunaix-os.git] / lunaix-os / includes / lunaix / compiler.h
diff --git a/lunaix-os/includes/lunaix/compiler.h b/lunaix-os/includes/lunaix/compiler.h
new file mode 100644 (file)
index 0000000..da376c1
--- /dev/null
@@ -0,0 +1,8 @@
+#ifndef __LUNAIX_COMPILER_H
+#define __LUNAIX_COMPILER_H
+
+#define likely(x) __builtin_expect((x), 1)
+
+#define weak_alias(name) __attribute__((weak, alias(name)))
+
+#endif /* __LUNAIX_COMPILER_H */