mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-05-28 22:33:17 +00:00
User-defined literals
This commit is contained in:
parent
441471370e
commit
c0c6024e2c
3 changed files with 9 additions and 3 deletions
|
@ -3,7 +3,7 @@
|
|||
|
||||
// constants
|
||||
|
||||
constexpr u64 SCE_KERNEL_MAIN_DMEM_SIZE = (5637144576); // ~ 6GB
|
||||
constexpr u64 SCE_KERNEL_MAIN_DMEM_SIZE = 5376_MB; // ~ 6GB
|
||||
|
||||
//memory types
|
||||
constexpr int SCE_KERNEL_WB_ONION = 0; // write - back mode (Onion bus)
|
||||
|
|
|
@ -7,7 +7,7 @@ namespace HLE::Libs::LibKernel::MemoryManagement {
|
|||
|
||||
bool isPowerOfTwo(u64 n) { return std::popcount(n) == 1; }
|
||||
|
||||
bool is16KBmultiply(u64 n) { return ((n % (static_cast<u64>(16) * 1024) == 0)); }
|
||||
bool is16KBAligned(u64 n) { return ((n % (static_cast<u64>(16) * 1024) == 0)); }
|
||||
|
||||
u64 PS4_SYSV_ABI sceKernelGetDirectMemorySize() { return SCE_KERNEL_MAIN_DMEM_SIZE; }
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue