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: standard vga support (mode switching, framebuffer remapping)
[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..72bffb713b5c4ec136323ac3d4c4d7d4a6c7437e 100644
(file)
--- a/
lunaix-os/includes/lunaix/compiler.h
+++ b/
lunaix-os/includes/lunaix/compiler.h
@@
-2,7
+2,9
@@
#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))
#endif /* __LUNAIX_COMPILER_H */
#endif /* __LUNAIX_COMPILER_H */