aboutsummaryrefslogtreecommitdiff
path: root/libk/types.h
diff options
context:
space:
mode:
Diffstat (limited to 'libk/types.h')
-rw-r--r--libk/types.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/libk/types.h b/libk/types.h
index 599f852..08d42b9 100644
--- a/libk/types.h
+++ b/libk/types.h
@@ -13,6 +13,15 @@ typedef short int16_t;
typedef int int32_t;
typedef long long int int64_t;
+/* in x86:
+ * byte: 1 byte, 8 bits
+ * word: 2 bytes, 16 bits
+ * dword: 4 bytes, 32 bits
+ * qword: 8 bytes, 64 bits
+ * */
+typedef uint16_t uword_t;
+typedef int16_t word_t;
+
// Type Traits
template <class T, T v>