From 9af205873f7e7342da56e2e66b7249e1fca4d907 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sun, 9 Jun 2024 18:52:50 +0200 Subject: e --- hash/fnv.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'hash') 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 // ReSharper disable CppDefaultCaseNotHandledInSwitchStatement // NOLINTBEGIN(*-multiway-paths-covered, *-switch-missing-default-case) namespace floormat::FNVHash { - namespace { + template 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; }; -- cgit v1.2.3