summary refs log tree commit diff
diff options
context:
space:
mode:
authorWormHeamer2025-03-05 04:55:03 -0500
committerWormHeamer2025-03-05 04:55:03 -0500
commit640042b5fb7391da6e1d4980033d9c82c8f36532 (patch)
treec9e3781ea4102e13de2d493ef3b8c4dfe6c5c38f
parent823bd5441ba7a8f69d56a775dbc8d36446032113 (diff)
add short types in typ.h
-rw-r--r--typ.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/typ.h b/typ.h
new file mode 100644
index 0000000..9c07111
--- /dev/null
+++ b/typ.h
@@ -0,0 +1,26 @@
+#ifndef TYP_H
+#define TYP_H
+
+#include <stdint.h>
+#include <stddef.h>
+
+typedef uint8_t  u8;
+typedef uint16_t u16;
+typedef uint32_t u32;
+typedef uint64_t u64;
+
+typedef int8_t  i8;
+typedef int16_t i16;
+typedef int32_t i32;
+typedef int64_t i64;
+
+typedef float f32;
+typedef double f64;
+
+typedef size_t usize;
+typedef ptrdiff_t isize;
+
+typedef intptr_t iptr;
+typedef uintptr_t uptr;
+
+#endif