diff --git a/app/src/main/cpp/skyline/common/dirty_tracking.h b/app/src/main/cpp/skyline/common/dirty_tracking.h index 4c6cb64e..366fe904 100644 --- a/app/src/main/cpp/skyline/common/dirty_tracking.h +++ b/app/src/main/cpp/skyline/common/dirty_tracking.h @@ -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; diff --git a/app/src/main/cpp/skyline/common/segment_table.h b/app/src/main/cpp/skyline/common/segment_table.h index f932681d..87ce7bc2 100644 --- a/app/src/main/cpp/skyline/common/segment_table.h +++ b/app/src/main/cpp/skyline/common/segment_table.h @@ -78,9 +78,10 @@ namespace skyline { */ const SegmentType &operator[](size_t index) const { auto &l2Entry{level2Table[index >> L2Bits]}; - if (l2Entry.valid) + if (l2Entry.valid) [[likely]] return l2Entry.segment; - return level1Table[index >> L1Bits]; + else + return level1Table[index >> L1Bits]; } /**