mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-07-23 18:45:36 +00:00
clang-format
This commit is contained in:
parent
b2dec3ce3c
commit
1a7eb95c42
@ -84,7 +84,8 @@ public:
|
|||||||
RENDERER_TRACE;
|
RENDERER_TRACE;
|
||||||
const size_t offset = dirty_addr - cpu_addr;
|
const size_t offset = dirty_addr - cpu_addr;
|
||||||
const size_t start_page = SanitizeAddress(offset) / TRACKER_BYTES_PER_PAGE;
|
const size_t start_page = SanitizeAddress(offset) / TRACKER_BYTES_PER_PAGE;
|
||||||
const size_t end_page = Common::DivCeil(SanitizeAddress(offset + size), TRACKER_BYTES_PER_PAGE);
|
const size_t end_page =
|
||||||
|
Common::DivCeil(SanitizeAddress(offset + size), TRACKER_BYTES_PER_PAGE);
|
||||||
if (start_page >= NUM_PAGES_PER_REGION || end_page <= start_page) {
|
if (start_page >= NUM_PAGES_PER_REGION || end_page <= start_page) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -115,7 +116,8 @@ public:
|
|||||||
RENDERER_TRACE;
|
RENDERER_TRACE;
|
||||||
const size_t offset = query_cpu_range - cpu_addr;
|
const size_t offset = query_cpu_range - cpu_addr;
|
||||||
const size_t start_page = SanitizeAddress(offset) / TRACKER_BYTES_PER_PAGE;
|
const size_t start_page = SanitizeAddress(offset) / TRACKER_BYTES_PER_PAGE;
|
||||||
const size_t end_page = Common::DivCeil(SanitizeAddress(offset + size), TRACKER_BYTES_PER_PAGE);
|
const size_t end_page =
|
||||||
|
Common::DivCeil(SanitizeAddress(offset + size), TRACKER_BYTES_PER_PAGE);
|
||||||
if (start_page >= NUM_PAGES_PER_REGION || end_page <= start_page) {
|
if (start_page >= NUM_PAGES_PER_REGION || end_page <= start_page) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -152,7 +154,8 @@ public:
|
|||||||
[[nodiscard]] bool IsRegionModified(u64 offset, u64 size) const noexcept {
|
[[nodiscard]] bool IsRegionModified(u64 offset, u64 size) const noexcept {
|
||||||
RENDERER_TRACE;
|
RENDERER_TRACE;
|
||||||
const size_t start_page = SanitizeAddress(offset) / TRACKER_BYTES_PER_PAGE;
|
const size_t start_page = SanitizeAddress(offset) / TRACKER_BYTES_PER_PAGE;
|
||||||
const size_t end_page = Common::DivCeil(SanitizeAddress(offset + size), TRACKER_BYTES_PER_PAGE);
|
const size_t end_page =
|
||||||
|
Common::DivCeil(SanitizeAddress(offset + size), TRACKER_BYTES_PER_PAGE);
|
||||||
if (start_page >= NUM_PAGES_PER_REGION || end_page <= start_page) {
|
if (start_page >= NUM_PAGES_PER_REGION || end_page <= start_page) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user