diff options
author | olegator <olegator@yandex-team.ru> | 2022-02-10 16:49:55 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:49:55 +0300 |
commit | 553b4d1ea5e01ab98a8cfa8e3cfed79a0a93972d (patch) | |
tree | 5d5cb817648f650d76cf1076100726fd9b8448e8 /util/digest | |
parent | 971cfa1c440a14ae8352b1dbf29a884fea7536db (diff) | |
download | ydb-553b4d1ea5e01ab98a8cfa8e3cfed79a0a93972d.tar.gz |
Restoring authorship annotation for <olegator@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'util/digest')
-rw-r--r-- | util/digest/murmur.cpp | 2 | ||||
-rw-r--r-- | util/digest/murmur.h | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/util/digest/murmur.cpp b/util/digest/murmur.cpp index 0a515727f3..b041d3e5f2 100644 --- a/util/digest/murmur.cpp +++ b/util/digest/murmur.cpp @@ -126,6 +126,6 @@ namespace NMurmurPrivate { } } -size_t MurmurHashSizeT(const char* buf, size_t len) noexcept { +size_t MurmurHashSizeT(const char* buf, size_t len) noexcept { return MurmurHash<size_t>(buf, len); } diff --git a/util/digest/murmur.h b/util/digest/murmur.h index 477de36deb..6b519b430a 100644 --- a/util/digest/murmur.h +++ b/util/digest/murmur.h @@ -35,21 +35,21 @@ static inline T MurmurHash(const void* buf, size_t len, T init) noexcept { } template <class T> -static inline T MurmurHash(const void* buf, size_t len) noexcept { +static inline T MurmurHash(const void* buf, size_t len) noexcept { return MurmurHash<T>(buf, len, (T)0); } //non-inline version -size_t MurmurHashSizeT(const char* buf, size_t len) noexcept; +size_t MurmurHashSizeT(const char* buf, size_t len) noexcept; template <typename TOut = size_t> struct TMurmurHash { - TOut operator()(const void* buf, size_t len) const noexcept { + TOut operator()(const void* buf, size_t len) const noexcept { return MurmurHash<TOut>(buf, len); } template <typename ElementType> - TOut operator()(const TArrayRef<ElementType>& data) const noexcept { + TOut operator()(const TArrayRef<ElementType>& data) const noexcept { return operator()(data.data(), data.size() * sizeof(ElementType)); } }; |