aboutsummaryrefslogtreecommitdiff
path: root/libs/libc/inc/def.h
diff options
context:
space:
mode:
authorMarvin Borner2021-04-02 16:17:50 +0200
committerMarvin Borner2021-04-02 16:17:50 +0200
commitb62b9d1f33a4911feb9f318ece0c1565f27abf8d (patch)
treeaecea9f7b5bf651b584911cf90c61258b9564556 /libs/libc/inc/def.h
parentd055495f3dbb62f74809d31a84621d6e86d61d0a (diff)
Replaced target macros
Diffstat (limited to 'libs/libc/inc/def.h')
-rw-r--r--libs/libc/inc/def.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/libs/libc/inc/def.h b/libs/libc/inc/def.h
index 2bf50b1..583a351 100644
--- a/libs/libc/inc/def.h
+++ b/libs/libc/inc/def.h
@@ -25,10 +25,10 @@ typedef unsigned long long u64;
#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))