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 | 971cfa1c440a14ae8352b1dbf29a884fea7536db (patch) | |
tree | e03e5f1c971e2c7a8e7ba6b0c982587b9191503e /util | |
parent | c1979c2381cc77360b23e68225994f4b343e5acc (diff) | |
download | ydb-971cfa1c440a14ae8352b1dbf29a884fea7536db.tar.gz |
Restoring authorship annotation for <olegator@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'util')
-rw-r--r-- | util/digest/murmur.cpp | 2 | ||||
-rw-r--r-- | util/digest/murmur.h | 8 | ||||
-rw-r--r-- | util/generic/serialized_enum.h | 2 | ||||
-rw-r--r-- | util/thread/pool.h | 4 |
4 files changed, 8 insertions, 8 deletions
diff --git a/util/digest/murmur.cpp b/util/digest/murmur.cpp index b041d3e5f2..0a515727f3 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 6b519b430a..477de36deb 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)); } }; diff --git a/util/generic/serialized_enum.h b/util/generic/serialized_enum.h index 79df2bac22..0594b9d911 100644 --- a/util/generic/serialized_enum.h +++ b/util/generic/serialized_enum.h @@ -16,7 +16,7 @@ It doesn't contains definitions. To generate them you have to add or GENERATE_ENUM_SERIALIZATION(your_header_with_your_enum.h) -in your ya.make +in your ya.make @see https://st.yandex-team.ru/IGNIETFERRO-333 @see https://wiki.yandex-team.ru/PoiskovajaPlatforma/Build/WritingCmakefiles/#generate-enum-with-header diff --git a/util/thread/pool.h b/util/thread/pool.h index d1ea3a67cb..b81603fe17 100644 --- a/util/thread/pool.h +++ b/util/thread/pool.h @@ -383,8 +383,8 @@ inline void Delete(THolder<IThreadPool> q) { } } -/** +/** * Creates and starts TThreadPool if threadsCount > 1, or TFakeThreadPool otherwise * You could specify blocking and catching modes for TThreadPool only - */ + */ THolder<IThreadPool> CreateThreadPool(size_t threadCount, size_t queueSizeLimit = 0, const IThreadPool::TParams& params = {}); |