From dddd272bbeb599a533b0a2eafac561ede1797788 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sat, 22 Oct 2022 23:33:44 +0200 Subject: kill old int hash --- attic/hash.hpp | 25 ------------------------- 1 file changed, 25 deletions(-) delete mode 100644 attic/hash.hpp diff --git a/attic/hash.hpp b/attic/hash.hpp deleted file mode 100644 index c915ce95..00000000 --- a/attic/hash.hpp +++ /dev/null @@ -1,25 +0,0 @@ -#pragma once -#include -#include - -namespace floormat { - -template struct hash; - -template<> -struct hash<32> final { - [[maybe_unused]] - constexpr std::uint32_t operator()(std::uint32_t x) const noexcept { - return (std::uint32_t)x*0x9e3779b1u; - } -}; - -template<> -struct hash<64> final { - [[maybe_unused]] - constexpr std::uint64_t operator()(std::uint64_t x) const noexcept { - return x*0x9e3779b97f4a7c15ull; - } -}; - -} // namespace floormat -- cgit v1.2.3