mirror of
https://github.com/skyline-emu/skyline.git
synced 2024-12-29 14:15:29 +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) {
|
void MarkDirty(size_t index) {
|
||||||
auto &state{states[index]};
|
auto &state{states[index]};
|
||||||
if (state.type == BindingState::Type::None) {
|
if (state.type == BindingState::Type::None) [[likely]] {
|
||||||
return;
|
return;
|
||||||
} else if (state.type == BindingState::Type::Inline) {
|
} else if (state.type == BindingState::Type::Inline) {
|
||||||
*state.inlineDirtyPtr = true;
|
*state.inlineDirtyPtr = true;
|
||||||
|
@ -78,9 +78,10 @@ namespace skyline {
|
|||||||
*/
|
*/
|
||||||
const SegmentType &operator[](size_t index) const {
|
const SegmentType &operator[](size_t index) const {
|
||||||
auto &l2Entry{level2Table[index >> L2Bits]};
|
auto &l2Entry{level2Table[index >> L2Bits]};
|
||||||
if (l2Entry.valid)
|
if (l2Entry.valid) [[likely]]
|
||||||
return l2Entry.segment;
|
return l2Entry.segment;
|
||||||
return level1Table[index >> L1Bits];
|
else
|
||||||
|
return level1Table[index >> L1Bits];
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user