git://scm.lunaixsky.com
/
lunaix-os.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
feat: kprintf now goes into dedicated pseudo-dev rather than flooding the framebuffer
[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
index da376c1dbd36fe5ebbb6dee04204602ec3681738..314afd95e297948b6d3596f341ed6f770c32c819 100644
(file)
--- a/
lunaix-os/includes/lunaix/compiler.h
+++ b/
lunaix-os/includes/lunaix/compiler.h
@@
-2,7
+2,13
@@
#define __LUNAIX_COMPILER_H
#define likely(x) __builtin_expect((x), 1)
#define __LUNAIX_COMPILER_H
#define likely(x) __builtin_expect((x), 1)
+#define unlikely(x) __builtin_expect((x), 0)
#define weak_alias(name) __attribute__((weak, alias(name)))
#define weak_alias(name) __attribute__((weak, alias(name)))
+#define weak __attribute__((weak))
+#define noret __attribute__((noreturn))
+
+#define stringify(v) #v
+#define stringify__(v) stringify(v)
#endif /* __LUNAIX_COMPILER_H */
#endif /* __LUNAIX_COMPILER_H */