mirror of
https://github.com/AxioDL/zeus.git
synced 2025-12-08 05:05:04 +00:00
Global: Mark hash_combine_impl() as noexcept
This is used with hashes that are declared noexcept, so this should also be noexcept.
This commit is contained in:
@@ -16,8 +16,8 @@ using simd_doubles = athena::simd_doubles;
|
||||
#endif
|
||||
|
||||
template <typename SizeT>
|
||||
constexpr void hash_combine_impl(SizeT& seed, SizeT value) {
|
||||
seed ^= value + 0x9e3779b9 + (seed<<6) + (seed>>2);
|
||||
constexpr void hash_combine_impl(SizeT& seed, SizeT value) noexcept {
|
||||
seed ^= value + 0x9e3779b9 + (seed << 6) + (seed >> 2);
|
||||
}
|
||||
} // namespace zeus
|
||||
|
||||
|
||||
Reference in New Issue
Block a user