Skip to content

Commit

Permalink
registers: Add noexcept to IsSRegister()
Browse files Browse the repository at this point in the history
Largely for consistency.
  • Loading branch information
lioncash committed Jan 13, 2024
1 parent aa2fa55 commit 3daf6a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/biscuit/registers.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ class PushPopList final {
}

// Aside from ra, it's only valid for s0-s11 to show up the register list ranges.
[[nodiscard]] static constexpr bool IsSRegister(const GPR gpr) {
[[nodiscard]] static constexpr bool IsSRegister(const GPR gpr) noexcept {
return gpr == s0 || gpr == s1 || (gpr >= s2 && gpr <= s11);
}

Expand Down

0 comments on commit 3daf6a2

Please sign in to comment.