mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-02-25 16:41:04 +00:00
Debugger: Encourage better meminfo accounting.
This makes MSVC generate a tighter loop and inline.
This commit is contained in:
parent
77502db4c4
commit
664d18cc9d
@ -345,8 +345,11 @@ void MemSlabMap::FillHeads(Slab *slab) {
|
||||
}
|
||||
|
||||
// Now replace all the rest - we definitely cover the start of them.
|
||||
for (uint32_t i = slice + 1; i <= endSlice; ++i) {
|
||||
heads_[i] = slab;
|
||||
Slab **next = &heads_[slice + 1];
|
||||
// We want to set slice + 1 through endSlice, inclusive.
|
||||
size_t c = endSlice - slice;
|
||||
for (size_t i = 0; i < c; ++i) {
|
||||
next[i] = slab;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user