mirror of
https://github.com/GrapheneOS/hardened_malloc.git
synced 2025-05-23 16:31:20 -04:00
initial commit
This commit is contained in:
commit
70d61b6662
12 changed files with 1086 additions and 0 deletions
15
util.h
Normal file
15
util.h
Normal file
|
@ -0,0 +1,15 @@
|
|||
#ifndef UTIL_H
|
||||
#define UTIL_H
|
||||
|
||||
#include <stdnoreturn.h>
|
||||
|
||||
#define likely(x) __builtin_expect((x), 1)
|
||||
#define unlikely(x) __builtin_expect((x), 0)
|
||||
|
||||
#define COLD __attribute__((cold))
|
||||
#define UNUSED __attribute__((unused))
|
||||
#define EXPORT __attribute__((visibility("default")))
|
||||
|
||||
COLD noreturn void fatal_error(const char *s);
|
||||
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue