mirror of
https://git.suyu.dev/suyu/dynarmic.git
synced 2026-03-20 02:52:56 +00:00
general: Mark hash functions as noexcept
Generally hash functions shouldn't throw exceptions. It's also a requirement for the standard library-provided hash functions to not throw exceptions. An exception to this rule is made for user-defined specializations, however we can just be consistent with the standard library on this to allow it to play nicer with it. While we're at it, we can also make the std::less specializations noexcpet as well, since they also can't throw.
This commit is contained in:
@@ -196,7 +196,7 @@ void A32JitState::SetFpscr(u32 FPSCR) {
|
||||
}
|
||||
}
|
||||
|
||||
u64 A32JitState::GetUniqueHash() const {
|
||||
u64 A32JitState::GetUniqueHash() const noexcept {
|
||||
return CPSR_et | FPSCR_mode | (static_cast<u64>(Reg[15]) << 32);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user