mirror of
https://github.com/skyline-emu/skyline.git
synced 2024-12-29 14:25:30 +03:00
Add branch hint attributes to a couple branches
This commit is contained in:
parent
b310b99bdc
commit
2cdf6c1fe6
@ -150,7 +150,7 @@ namespace skyline::dirty {
|
||||
*/
|
||||
void MarkDirty(size_t index) {
|
||||
auto &state{states[index]};
|
||||
if (state.type == BindingState::Type::None) {
|
||||
if (state.type == BindingState::Type::None) [[likely]] {
|
||||
return;
|
||||
} else if (state.type == BindingState::Type::Inline) {
|
||||
*state.inlineDirtyPtr = true;
|
||||
|
@ -78,8 +78,9 @@ namespace skyline {
|
||||
*/
|
||||
const SegmentType &operator[](size_t index) const {
|
||||
auto &l2Entry{level2Table[index >> L2Bits]};
|
||||
if (l2Entry.valid)
|
||||
if (l2Entry.valid) [[likely]]
|
||||
return l2Entry.segment;
|
||||
else
|
||||
return level1Table[index >> L1Bits];
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user