From 9b5947552ea6273d20f403a84439d347ee05b089 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Fri, 24 Nov 2023 01:04:20 +0100 Subject: maybe fix ci --- compat/int-hash.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'compat') diff --git a/compat/int-hash.cpp b/compat/int-hash.cpp index aa5287f8..c6ca7d3d 100644 --- a/compat/int-hash.cpp +++ b/compat/int-hash.cpp @@ -6,15 +6,15 @@ namespace floormat { namespace { -template struct fnvhash_params; +template struct fnvhash_params; -template<> struct fnvhash_params { uint32_t a = 0x811c9dc5u, b = 0x01000193u; }; -template<> struct fnvhash_params { uint64_t a = 0xcbf29ce484222325u, b = 0x100000001b3u; }; +template<> struct fnvhash_params<32> { uint32_t a = 0x811c9dc5u, b = 0x01000193u; }; +template<> struct fnvhash_params<64> { uint64_t a = 0xcbf29ce484222325u, b = 0x100000001b3u; }; [[maybe_unused]] CORRADE_ALWAYS_INLINE size_t fnvhash_uint_32(uint32_t x) { - constexpr auto params = fnvhash_params>{}; + constexpr auto params = fnvhash_params{}; constexpr auto a = params.a, b = params.b; auto hash = a; const auto* str = (const char*)&x; @@ -29,7 +29,7 @@ CORRADE_ALWAYS_INLINE size_t fnvhash_uint_32(uint32_t x) CORRADE_ALWAYS_INLINE size_t fnvhash_uint_64(uint64_t x) { - constexpr auto params = fnvhash_params>{}; + constexpr auto params = fnvhash_params)*8>{}; constexpr auto a = params.a, b = params.b; auto hash = a; const auto* str = (const char*)&x; @@ -50,7 +50,7 @@ CORRADE_ALWAYS_INLINE size_t fnvhash_uint_64(uint64_t x) uint32_t hash_32(const void* buf, size_t size) noexcept { - constexpr auto params = fnvhash_params>{}; + constexpr auto params = fnvhash_params<32>{}; constexpr auto a = params.a, b = params.b; auto hash = a; const auto *str = (const char*)buf, *const end = str + size; @@ -66,7 +66,7 @@ fm_UNROLL_4 uint64_t hash_64(const void* buf, size_t size) noexcept { - constexpr auto params = fnvhash_params>{}; + constexpr auto params = fnvhash_params{}; constexpr auto a = params.a, b = params.b; auto hash = a; const auto *str = (const char*)buf, *const end = str + size; -- cgit v1.2.3