summaryrefslogtreecommitdiffhomepage
path: root/compat
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2024-01-19 15:03:59 +0100
committerStanislaw Halik <sthalik@misaki.pl>2024-01-20 15:37:22 +0100
commitfff6a131ccadee9dcbd7f213e1846a0095f526e1 (patch)
tree199dee817f35460c2a48bc8aecfa403b33a02cd0 /compat
parent3264ef85e50add2db3c54291540bde7e8411cb70 (diff)
w
Diffstat (limited to 'compat')
-rw-r--r--compat/int-hash.hpp6
1 files changed, 4 insertions, 2 deletions
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<size_t N = sizeof nullptr * 4> struct fnvhash_params;
+template<size_t N = sizeof nullptr * 8> 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