Replaced opaque bit-shifts with readable constants for memory units

This commit is contained in:
hikari
2022-12-24 08:27:15 +02:00
parent 56e050fbc9
commit d904ae5191
5 changed files with 16 additions and 10 deletions
+6
View File
@@ -329,6 +329,12 @@ Allocator :: struct {
data: rawptr,
}
Byte :: 1
Kilobyte :: 1024 * Byte
Megabyte :: 1024 * Kilobyte
Gigabyte :: 1024 * Megabyte
Terabyte :: 1024 * Gigabyte
// Logging stuff
Logger_Level :: enum uint {