mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-07-23 10:35:03 +00:00
clang-format 2.0
This commit is contained in:
parent
1a7eb95c42
commit
7d80a457b1
@ -190,10 +190,10 @@ struct PageManager::Impl {
|
||||
template <bool track>
|
||||
void UpdatePageWatchers(VAddr addr, u64 size) {
|
||||
RENDERER_TRACE;
|
||||
|
||||
|
||||
size_t page = addr >> PAGE_BITS;
|
||||
const u64 page_end = Common::DivCeil(addr + size, PAGE_SIZE);
|
||||
|
||||
|
||||
const size_t lock_start = page / PAGES_PER_LOCK;
|
||||
const size_t lock_end = Common::DivCeil(page_end, PAGES_PER_LOCK);
|
||||
for (size_t i = lock_start; i < lock_end; ++i) {
|
||||
@ -215,7 +215,6 @@ struct PageManager::Impl {
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
// Iterate requested pages
|
||||
const u64 aligned_addr = page << PAGE_BITS;
|
||||
const u64 aligned_end = page_end << PAGE_BITS;
|
||||
@ -273,7 +272,7 @@ struct PageManager::Impl {
|
||||
UpdatePageWatchers<track>(start_addr, size);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
size_t base_page = (base_addr >> PAGE_BITS);
|
||||
ASSERT(base_page % PAGES_PER_LOCK == 0);
|
||||
std::scoped_lock lk(locks[base_page / PAGES_PER_LOCK]);
|
||||
|
Loading…
Reference in New Issue
Block a user