diff options
Diffstat (limited to 'compat/int-hash.hpp')
-rw-r--r-- | compat/int-hash.hpp | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/compat/int-hash.hpp b/compat/int-hash.hpp index 86fc6a45..b3dd7616 100644 --- a/compat/int-hash.hpp +++ b/compat/int-hash.hpp @@ -1,11 +1,17 @@ #pragma once +namespace floormat::impl_hash { + +template<size_t N> size_t hash_buf(const void* buf, size_t size) noexcept = delete; + +} // namespace floormat::impl_hash + namespace floormat { -size_t int_hash(uint32_t x) noexcept; -size_t int_hash(uint64_t x) noexcept; +uint64_t hash_64(const void* buf, size_t size) noexcept; +uint32_t hash_32(const void* buf, size_t size) noexcept; -uint64_t fnvhash_64(const void* buf, size_t size); -uint64_t fnvhash_32(const void* buf, size_t size); +size_t hash_int(uint32_t x) noexcept; +size_t hash_int(uint64_t x) noexcept; } // namespace floormat |