diff options
| author | anon | 2025-10-10 15:28:34 +0200 |
|---|---|---|
| committer | anon | 2025-10-10 15:28:34 +0200 |
| commit | 3b40240f07efec57bc1d698815406423f38a3f60 (patch) | |
| tree | 44dd4c559a89cb1e9b58bbe1dd0b3a57f9c16687 /chad/memory-units.h | |
| parent | d446b79b0d22e4acc4e1626cf8ab63d09bdc75cd (diff) | |
| download | libchad-3b40240f07efec57bc1d698815406423f38a3f60.tar.xz libchad-3b40240f07efec57bc1d698815406423f38a3f60.tar.zst | |
+memory-units
Diffstat (limited to 'chad/memory-units.h')
| -rw-r--r-- | chad/memory-units.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/chad/memory-units.h b/chad/memory-units.h new file mode 100644 index 0000000..f2534fb --- /dev/null +++ b/chad/memory-units.h @@ -0,0 +1,13 @@ +#ifndef MEMORY_UNITS +#define MEMORY_UNITS + +#define KB 1000ull +#define MB 1000000ull +#define GB 1000000000ull +#define TB 1000000000000ull +#define KiB 1024ull +#define MiB 1048576ull +#define GiB 1073741824ull +#define TiB 1099511627776ull + +#endif |
