diff options
author | bunnei <bunneidev@gmail.com> | 2021-03-20 08:43:00 +0100 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2021-03-21 22:45:03 +0100 |
commit | 8d0ba7ee494af17c85ef2d617db5f2a7acaa37cf (patch) | |
tree | 51890f6a5accc88ebbde67d32ce0c4cecd30b10b /src/common | |
parent | hle: kernel: k_memory_region: Refactor to simplify code. (diff) | |
download | yuzu-8d0ba7ee494af17c85ef2d617db5f2a7acaa37cf.tar yuzu-8d0ba7ee494af17c85ef2d617db5f2a7acaa37cf.tar.gz yuzu-8d0ba7ee494af17c85ef2d617db5f2a7acaa37cf.tar.bz2 yuzu-8d0ba7ee494af17c85ef2d617db5f2a7acaa37cf.tar.lz yuzu-8d0ba7ee494af17c85ef2d617db5f2a7acaa37cf.tar.xz yuzu-8d0ba7ee494af17c85ef2d617db5f2a7acaa37cf.tar.zst yuzu-8d0ba7ee494af17c85ef2d617db5f2a7acaa37cf.zip |
Diffstat (limited to 'src/common')
-rw-r--r-- | src/common/common_sizes.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/common/common_sizes.h b/src/common/common_sizes.h index a6500bddd..5dc039c94 100644 --- a/src/common/common_sizes.h +++ b/src/common/common_sizes.h @@ -4,12 +4,18 @@ #pragma once +#include <limits> + #include "common/common_types.h" enum : u64 { + Size_1_KB = 0x400ULL, + Size_64_KB = 64ULL * Size_1_KB, + Size_128_KB = 128ULL * Size_1_KB, Size_1_MB = 0x100000ULL, Size_2_MB = 2ULL * Size_1_MB, Size_4_MB = 4ULL * Size_1_MB, + Size_5_MB = 5ULL * Size_1_MB, Size_14_MB = 14ULL * Size_1_MB, Size_32_MB = 32ULL * Size_1_MB, Size_33_MB = 33ULL * Size_1_MB, @@ -29,5 +35,5 @@ enum : u64 { Size_8_GB = 8ULL * Size_1_GB, Size_64_GB = 64ULL * Size_1_GB, Size_512_GB = 512ULL * Size_1_GB, - Invalid = std::numeric_limits<u64>::max(), + Size_Invalid = std::numeric_limits<u64>::max(), }; |