From fff6a131ccadee9dcbd7f213e1846a0095f526e1 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Fri, 19 Jan 2024 15:03:59 +0100 Subject: w --- compat/int-hash.hpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'compat') diff --git a/compat/int-hash.hpp b/compat/int-hash.hpp index 752c3597..a5d6b147 100644 --- a/compat/int-hash.hpp +++ b/compat/int-hash.hpp @@ -2,11 +2,13 @@ namespace floormat::Hash { -template struct fnvhash_params; +template struct fnvhash_params; template<> struct fnvhash_params<32> { static constexpr uint32_t a = 0x811c9dc5u, b = 0x01000193u; }; template<> struct fnvhash_params<64> { static constexpr uint64_t a = 0xcbf29ce484222325u, b = 0x100000001b3u; }; -size_t fnvhash_buf(const void* __restrict buf, size_t size, size_t seed = fnvhash_params<>::a) noexcept; +constexpr inline size_t fnvhash_seed = fnvhash_params<>::a; + +size_t fnvhash_buf(const void* __restrict buf, size_t size, size_t seed = fnvhash_seed) noexcept; } // namespace floormat::Hash -- cgit v1.2.3