summaryrefslogtreecommitdiffhomepage
path: root/hash.hpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2022-10-02 03:23:05 +0200
committerStanislaw Halik <sthalik@misaki.pl>2022-10-02 03:23:05 +0200
commit35cf1d65b454985c38b1e00a91670663b1583670 (patch)
tree1e47893775fbea27a79bf799fb99360b954a85ca /hash.hpp
parent5ec89ae3a42308dd5e43e5fed207824918123023 (diff)
a
Diffstat (limited to 'hash.hpp')
-rw-r--r--hash.hpp25
1 files changed, 0 insertions, 25 deletions
diff --git a/hash.hpp b/hash.hpp
deleted file mode 100644
index 75eea7a9..00000000
--- a/hash.hpp
+++ /dev/null
@@ -1,25 +0,0 @@
-#pragma once
-#include <cstddef>
-#include <cstdint>
-
-namespace Magnum::Examples {
-
-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 Magnum::Examples