aboutsummaryrefslogtreecommitdiff
path: root/libc
diff options
context:
space:
mode:
authorMarvin Borner2020-09-06 23:27:29 +0200
committerMarvin Borner2020-09-06 23:27:29 +0200
commit97f57cf4da45d268bbea863ae7bf40bb8c749aad (patch)
treef9804ce5cf22922aab0a425ed8007b03bb0761f6 /libc
parent586d58192b2c576393077c3944338b582c873f45 (diff)
Some timer thingies
Diffstat (limited to 'libc')
-rw-r--r--libc/inc/def.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/libc/inc/def.h b/libc/inc/def.h
index 42939a0..2c77203 100644
--- a/libc/inc/def.h
+++ b/libc/inc/def.h
@@ -25,4 +25,19 @@ typedef unsigned long long u64;
#define NULL ((void *)0)
+#define U8_MAX 255
+#define S8_MAX 127
+#define S8_MIN -128
+#define U16_MAX 65535
+#define S16_MAX 32767
+#define S16_MIN -32768
+#define U32_MAX 4294967295
+#define S32_MAX 2147483647
+#define S32_MIN -2147483648
+
+#define MILLION 1000000
+#define BILLION 1000000000
+#define TRILLION 1000000000000
+#define QUADRILLION 1000000000000000
+
#endif