summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2022-10-22 23:33:44 +0200
committerStanislaw Halik <sthalik@misaki.pl>2022-10-22 23:33:44 +0200
commitdddd272bbeb599a533b0a2eafac561ede1797788 (patch)
treead0f41eb0a24655febefeba402ca095b371b4d45
parent36a385347556b046df223012986ae35970279751 (diff)
kill old int hash
-rw-r--r--attic/hash.hpp25
1 files changed, 0 insertions, 25 deletions
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 <cstddef>
-#include <cstdint>
-
-namespace floormat {
-
-template<unsigned N = sizeof(std::size_t)*8> 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