diff options
author | bunnei <bunneidev@gmail.com> | 2021-03-20 07:52:47 +0100 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2021-03-21 22:45:03 +0100 |
commit | 28be8aec9a4499206662a7bd74091706000e3d6d (patch) | |
tree | d751a30ae95ae0f60a381eb1caa815ad552439be /src/common | |
parent | hle: kernel: k_address_space_info: Cleanup. (diff) | |
download | yuzu-28be8aec9a4499206662a7bd74091706000e3d6d.tar yuzu-28be8aec9a4499206662a7bd74091706000e3d6d.tar.gz yuzu-28be8aec9a4499206662a7bd74091706000e3d6d.tar.bz2 yuzu-28be8aec9a4499206662a7bd74091706000e3d6d.tar.lz yuzu-28be8aec9a4499206662a7bd74091706000e3d6d.tar.xz yuzu-28be8aec9a4499206662a7bd74091706000e3d6d.tar.zst yuzu-28be8aec9a4499206662a7bd74091706000e3d6d.zip |
Diffstat (limited to 'src/common')
-rw-r--r-- | src/common/CMakeLists.txt | 1 | ||||
-rw-r--r-- | src/common/common_sizes.h | 23 |
2 files changed, 24 insertions, 0 deletions
diff --git a/src/common/CMakeLists.txt b/src/common/CMakeLists.txt index 788516ded..7253c0f4d 100644 --- a/src/common/CMakeLists.txt +++ b/src/common/CMakeLists.txt @@ -109,6 +109,7 @@ add_library(common STATIC cityhash.h common_funcs.h common_paths.h + common_sizes.h common_types.h concepts.h div_ceil.h diff --git a/src/common/common_sizes.h b/src/common/common_sizes.h new file mode 100644 index 000000000..26425a57d --- /dev/null +++ b/src/common/common_sizes.h @@ -0,0 +1,23 @@ +// Copyright 2021 yuzu Emulator Project +// Licensed under GPLv2 or any later version +// Refer to the license.txt file included. + +#pragma once + +#include "common/common_types.h" + +enum : u64 { + Size_1_MB = 0x100000ULL, + Size_2_MB = 2ULL * Size_1_MB, + Size_4_MB = 4ULL * Size_1_MB, + Size_14_MB = 14ULL * Size_1_MB, + Size_32_MB = 32ULL * Size_1_MB, + Size_128_MB = 128ULL * Size_1_MB, + Size_1_GB = 0x40000000ULL, + Size_2_GB = 2ULL * Size_1_GB, + Size_4_GB = 4ULL * Size_1_GB, + Size_6_GB = 6ULL * Size_1_GB, + Size_64_GB = 64ULL * Size_1_GB, + Size_512_GB = 512ULL * Size_1_GB, + Invalid = std::numeric_limits<u64>::max(), +}; |