diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2024-06-09 18:52:50 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2024-06-09 18:52:50 +0200 |
commit | 9af205873f7e7342da56e2e66b7249e1fca4d907 (patch) | |
tree | fdc9cc04afccebd797a2fb574f43c5d14c6649a6 /hash/fnv.cpp | |
parent | dbf2936b4af330589aee9782e435ad5dd908a047 (diff) |
e
Diffstat (limited to 'hash/fnv.cpp')
-rw-r--r-- | hash/fnv.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/hash/fnv.cpp b/hash/fnv.cpp index 80ed9d52..a97c6eb8 100644 --- a/hash/fnv.cpp +++ b/hash/fnv.cpp @@ -1,13 +1,11 @@ #include "hash-impl.hpp" -#include "compat/defs.hpp" -#include <utility> // ReSharper disable CppDefaultCaseNotHandledInSwitchStatement // NOLINTBEGIN(*-multiway-paths-covered, *-switch-missing-default-case) namespace floormat::FNVHash { - namespace { + template<size_t N = sizeof nullptr * 8> struct fnvhash_params; template<> struct fnvhash_params<32> { [[maybe_unused]] static constexpr uint32_t a = 0x811c9dc5u, b = 0x01000193u; }; template<> struct fnvhash_params<64> { [[maybe_unused]] static constexpr uint64_t a = 0xcbf29ce484222325u, b = 0x100000001b3u; }; |