summaryrefslogtreecommitdiff
path: root/src/core/memory.h
diff options
context:
space:
mode:
authorGravatar liamwhite2022-08-21 12:59:01 -0400
committerGravatar GitHub2022-08-21 12:59:01 -0400
commit064f836d1c4f6de7d7c100b4aff700bf66448e22 (patch)
tree7f087cacbde745c7d64f205618b80624c8599074 /src/core/memory.h
parentMerge pull request #8790 from liamwhite/too-many-ways-to-name-a-byte-string (diff)
parentcode: dodge PAGE_SIZE #define (diff)
downloadyuzu-064f836d1c4f6de7d7c100b4aff700bf66448e22.tar.gz
yuzu-064f836d1c4f6de7d7c100b4aff700bf66448e22.tar.xz
yuzu-064f836d1c4f6de7d7c100b4aff700bf66448e22.zip
Merge pull request #8784 from Docteh/nosnek
code: dodge PAGE_SIZE #define
Diffstat (limited to 'src/core/memory.h')
-rw-r--r--src/core/memory.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/memory.h b/src/core/memory.h
index 2a21fbcfd..a11ff8766 100644
--- a/src/core/memory.h
+++ b/src/core/memory.h
@@ -27,9 +27,9 @@ namespace Core::Memory {
27 * Page size used by the ARM architecture. This is the smallest granularity with which memory can 27 * Page size used by the ARM architecture. This is the smallest granularity with which memory can
28 * be mapped. 28 * be mapped.
29 */ 29 */
30constexpr std::size_t PAGE_BITS = 12; 30constexpr std::size_t YUZU_PAGEBITS = 12;
31constexpr u64 PAGE_SIZE = 1ULL << PAGE_BITS; 31constexpr u64 YUZU_PAGESIZE = 1ULL << YUZU_PAGEBITS;
32constexpr u64 PAGE_MASK = PAGE_SIZE - 1; 32constexpr u64 YUZU_PAGEMASK = YUZU_PAGESIZE - 1;
33 33
34/// Virtual user-space memory regions 34/// Virtual user-space memory regions
35enum : VAddr { 35enum : VAddr {