diff options
author | Marvin Borner | 2021-04-02 01:27:36 +0200 |
---|---|---|
committer | Marvin Borner | 2021-04-02 01:27:36 +0200 |
commit | 192b756a6999a0637fcc72f3fd2f9f7099e32543 (patch) | |
tree | f936c42baeb54c8aebd0fc0ac0cb56f9dcf3c96c /libs/libc/inc/def.h | |
parent | afa00abb2b68205bee539d7947130d6b1b1ec6e9 (diff) |
Huge scheduling/proc-management improvements
Diffstat (limited to 'libs/libc/inc/def.h')
-rw-r--r-- | libs/libc/inc/def.h | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/libs/libc/inc/def.h b/libs/libc/inc/def.h index 378a4d0..2bf50b1 100644 --- a/libs/libc/inc/def.h +++ b/libs/libc/inc/def.h @@ -23,12 +23,12 @@ typedef unsigned long long u64; * Macros */ -#define UNUSED(a) ((void)(a)) +#define UNUSED(__a) ((void)(__a)) -#define MIN(a, b) (((a) < (b)) ? (a) : (b)) -#define MAX(a, b) (((a) > (b)) ? (a) : (b)) +#define MIN(__a, __b) (((__a) < (__b)) ? (__a) : (__b)) +#define MAX(__a, __b) (((__a) > (__b)) ? (__a) : (__b)) -#define ABS(a) ((u32)(((s32)(a) < 0) ? (-a) : (a))) +#define ABS(__a) ((u32)(((s32)(__a) < 0) ? (-__a) : (__a))) #define ATTR __attribute__ #define NORETURN ATTR((noreturn)) @@ -39,8 +39,12 @@ typedef unsigned long long u64; #define FLATTEN ATTR((flatten)) #define PACKED ATTR((packed)) #define HOT ATTR((hot)) -#define ALIGNED(align) ATTR((aligned(align))) +#define SENTINEL ATTR((sentinel)) +#define USED_FUNC ATTR((used)) +#define UNUSED_FUNC ATTR((unused)) #define NO_SANITIZE ATTR((no_sanitize("undefined"))) +#define ALIGNED(align) ATTR((aligned(align))) +#define SECTION(section) ATTR((section(section))) #define EOF (-1) #define NULL ((void *)0) |