diff options
| author | 2018-10-23 18:43:45 -0400 | |
|---|---|---|
| committer | 2018-10-23 18:43:45 -0400 | |
| commit | a5106fb9f52cffab3e526d68f930678900abd692 (patch) | |
| tree | ab0f70b87bd486e26a3660cdee8e9fefa923f1c7 /src/common/memory_util.h | |
| parent | Merge pull request #1540 from lioncash/handle (diff) | |
| parent | CMakeLists: Remove EMU_ARCH_BITS definition (diff) | |
| download | yuzu-a5106fb9f52cffab3e526d68f930678900abd692.tar.gz yuzu-a5106fb9f52cffab3e526d68f930678900abd692.tar.xz yuzu-a5106fb9f52cffab3e526d68f930678900abd692.zip | |
Merge pull request #1553 from lioncash/mem
common: Remove memory_util.h/.cpp
Diffstat (limited to 'src/common/memory_util.h')
| -rw-r--r-- | src/common/memory_util.h | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/src/common/memory_util.h b/src/common/memory_util.h deleted file mode 100644 index aad071979..000000000 --- a/src/common/memory_util.h +++ /dev/null | |||
| @@ -1,21 +0,0 @@ | |||
| 1 | // Copyright 2013 Dolphin Emulator Project / 2014 Citra Emulator Project | ||
| 2 | // Licensed under GPLv2 or any later version | ||
| 3 | // Refer to the license.txt file included. | ||
| 4 | |||
| 5 | #pragma once | ||
| 6 | |||
| 7 | #include <cstddef> | ||
| 8 | #include <string> | ||
| 9 | |||
| 10 | void* AllocateExecutableMemory(std::size_t size, bool low = true); | ||
| 11 | void* AllocateMemoryPages(std::size_t size); | ||
| 12 | void FreeMemoryPages(void* ptr, std::size_t size); | ||
| 13 | void* AllocateAlignedMemory(std::size_t size, std::size_t alignment); | ||
| 14 | void FreeAlignedMemory(void* ptr); | ||
| 15 | void WriteProtectMemory(void* ptr, std::size_t size, bool executable = false); | ||
| 16 | void UnWriteProtectMemory(void* ptr, std::size_t size, bool allowExecute = false); | ||
| 17 | std::string MemUsage(); | ||
| 18 | |||
| 19 | inline int GetPageSize() { | ||
| 20 | return 4096; | ||
| 21 | } | ||