From 6e37dca5665eb005f647ad8ad675df958be02fc0 Mon Sep 17 00:00:00 2001 From: LC Date: Sun, 19 Jul 2026 18:37:35 -0400 Subject: [PATCH] LinuxAllocator: Reduce MemAllocator32Bit size by 16 bytes These constants don't need to be member vars. --- Source/Tools/LinuxEmulation/LinuxSyscalls/LinuxAllocator.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Tools/LinuxEmulation/LinuxSyscalls/LinuxAllocator.cpp b/Source/Tools/LinuxEmulation/LinuxSyscalls/LinuxAllocator.cpp index 7ba364a7e..60b0ef192 100644 --- a/Source/Tools/LinuxEmulation/LinuxSyscalls/LinuxAllocator.cpp +++ b/Source/Tools/LinuxEmulation/LinuxSyscalls/LinuxAllocator.cpp @@ -23,8 +23,8 @@ namespace FEX::HLE { class MemAllocator32Bit final : public FEX::HLE::MemAllocator { private: static constexpr uint64_t BASE_KEY = 16; - const uint64_t TOP_KEY = 0xFFFF'F000ULL >> FEXCore::Utils::FEX_PAGE_SHIFT; - const uint64_t TOP_KEY32BIT = 0x7FFF'F000ULL >> FEXCore::Utils::FEX_PAGE_SHIFT; + static constexpr uint64_t TOP_KEY = 0xFFFF'F000ULL >> FEXCore::Utils::FEX_PAGE_SHIFT; + static constexpr uint64_t TOP_KEY32BIT = 0x7FFF'F000ULL >> FEXCore::Utils::FEX_PAGE_SHIFT; public: MemAllocator32Bit() {