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:
Lioncash
2019-04-12 15:20:43 -04:00
committed by MerryMage
parent 4a3d808354
commit 7bb5440507
7 changed files with 19 additions and 19 deletions

View File

@@ -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);
}