1
0
Fork 0
forked from suyu/suyu
suyu/src/core
Kyle Kienapfel 14e9de6678 code: dodge PAGE_SIZE #define
Some header files, specifically for OSX and Musl libc define PAGE_SIZE to be a number
This is great except in yuzu we're using PAGE_SIZE as a variable

Specific example
`static constexpr u64 PAGE_SIZE = u64(1) << PAGE_BITS;`

PAGE_SIZE PAGE_BITS PAGE_MASK are all similar variables.
Simply deleted the underscores, and then added YUZU_ prefix

Might be worth noting that there are multiple uses in different classes/namespaces
This list may not be exhaustive

Core::Memory   12 bits (4096)
QueryCacheBase 12 bits
ShaderCache    14 bits (16384)
TextureCache   20 bits (1048576, or 1MB)

Fixes #8779
2022-08-19 16:08:40 -07:00
..
arm code: dodge PAGE_SIZE #define 2022-08-19 16:08:40 -07:00
crypto common: Change semantics of UNREACHABLE to unconditionally crash 2022-06-13 20:09:00 -04:00
debugger kernel: unlayer CPU interrupt handling 2022-07-25 12:14:15 -04:00
file_sys ips_layer: Delimit parsed hex value string 2022-08-12 10:19:44 -04:00
frontend Merge pull request #8633 from Morph1984/optional-keys 2022-07-27 15:53:32 -04:00
hid Merge pull request #8722 from german77/ds4_goes_brrr 2022-08-09 16:22:33 -07:00
hle core, yuzu: Address first part of review comments 2022-08-15 20:25:42 +02:00
internal_network core/socket_proxy: Final nits 2022-08-15 23:50:19 +02:00
loader code: dodge PAGE_SIZE #define 2022-08-19 16:08:40 -07:00
memory PR 2022-07-10 08:29:37 +01:00
tools Rework CoreTiming 2022-07-10 06:59:40 +01:00
announce_multiplayer_session.cpp core, yuzu: Address first part of review comments 2022-08-15 20:25:42 +02:00
announce_multiplayer_session.h network, yuzu: Make copyright headers SPDX-compliant 2022-07-25 21:59:31 +02:00
CMakeLists.txt core, network: Add ability to proxy socket packets 2022-08-15 20:25:42 +02:00
constants.cpp general: Convert source file copyright comments over to SPDX 2022-04-23 05:55:32 -04:00
constants.h general: Convert source file copyright comments over to SPDX 2022-04-23 05:55:32 -04:00
core.cpp chore: make yuzu REUSE compliant 2022-07-27 12:53:49 +02:00
core.h chore: make yuzu REUSE compliant 2022-07-27 12:53:49 +02:00
core_timing.cpp Revert Coretiming PRs 8531 and 7454 (#8591) 2022-07-27 19:47:06 -04:00
core_timing.h Revert Coretiming PRs 8531 and 7454 (#8591) 2022-07-27 19:47:06 -04:00
core_timing_util.h general: Convert source file copyright comments over to SPDX 2022-04-23 05:55:32 -04:00
cpu_manager.cpp kernel: fix single-core preemption points 2022-07-14 22:47:18 -04:00
cpu_manager.h kernel: fix single-core preemption points 2022-07-14 22:47:18 -04:00
device_memory.cpp general: Convert source file copyright comments over to SPDX 2022-04-23 05:55:32 -04:00
device_memory.h general: Convert source file copyright comments over to SPDX 2022-04-23 05:55:32 -04:00
hardware_interrupt_manager.cpp Rework CoreTiming 2022-07-10 06:59:40 +01:00
hardware_interrupt_manager.h general: Convert source file copyright comments over to SPDX 2022-04-23 05:55:32 -04:00
hardware_properties.h core/debugger: memory breakpoint support 2022-06-16 13:18:07 -04:00
memory.cpp code: dodge PAGE_SIZE #define 2022-08-19 16:08:40 -07:00
memory.h code: dodge PAGE_SIZE #define 2022-08-19 16:08:40 -07:00
perf_stats.cpp chore: make yuzu REUSE compliant 2022-07-27 12:53:49 +02:00
perf_stats.h chore: make yuzu REUSE compliant 2022-07-27 12:53:49 +02:00
reporter.cpp core: Replace all instances of ResultCode with Result 2022-06-26 20:21:37 -05:00
reporter.h core: Replace all instances of ResultCode with Result 2022-06-26 20:21:37 -05:00
telemetry_session.cpp chore: make yuzu REUSE compliant 2022-07-27 12:53:49 +02:00
telemetry_session.h chore: make yuzu REUSE compliant 2022-07-27 12:53:49 +02:00