diff options
| author | Stanislaw Halik <sthalik@misaki.pl> | 2024-06-10 00:00:54 +0200 |
|---|---|---|
| committer | Stanislaw Halik <sthalik@misaki.pl> | 2024-06-30 21:52:01 +0200 |
| commit | 014fc7ab7762890c44ad3885668696300ceed25e (patch) | |
| tree | 5b87cc8a343e07e54a87f93c33f67f720a62a20d /hash/hash.hpp | |
| parent | 9af205873f7e7342da56e2e66b7249e1fca4d907 (diff) | |
hash: more work (also add meowhash)
Diffstat (limited to 'hash/hash.hpp')
| -rw-r--r-- | hash/hash.hpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/hash/hash.hpp b/hash/hash.hpp index e3df6e90..b5916e8f 100644 --- a/hash/hash.hpp +++ b/hash/hash.hpp @@ -3,12 +3,14 @@ #include <cr/StringView.h> namespace floormat { -namespace Hash = xxHash; -using Hash::hash_buf; -using Hash::hash_int; +namespace Hash_int = xxHash; +namespace Hash_str = xxHash; + +using Hash_int::hash_int; +using Hash_str::hash_buf; struct hash_string_view { [[nodiscard]] CORRADE_ALWAYS_INLINE size_t operator()(StringView str) const noexcept; }; -size_t hash_string_view::operator()(StringView str) const noexcept { return hash_buf(str.data(), str.size()); } +size_t hash_string_view::operator()(StringView str) const noexcept { return Hash_str::hash_buf(str.data(), str.size()); } } // namespace floormat |
