aboutsummaryrefslogtreecommitdiffstats
path: root/util/digest
diff options
context:
space:
mode:
authorVlad Yaroslavlev <vladon@vladon.com>2022-02-10 16:46:25 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:25 +0300
commit344ea37b4a345701ab0e67de2266a1c1bd7baf2d (patch)
tree1a2c5ffcf89eb53ecd79dbc9bc0a195c27404d0c /util/digest
parent706b83ed7de5a473436620367af31fc0ceecde07 (diff)
downloadydb-344ea37b4a345701ab0e67de2266a1c1bd7baf2d.tar.gz
Restoring authorship annotation for Vlad Yaroslavlev <vladon@vladon.com>. Commit 2 of 2.
Diffstat (limited to 'util/digest')
-rw-r--r--util/digest/city.h20
-rw-r--r--util/digest/multi_ut.pyx2
-rw-r--r--util/digest/sequence_ut.cpp10
3 files changed, 16 insertions, 16 deletions
diff --git a/util/digest/city.h b/util/digest/city.h
index ce37768d7f..675a798074 100644
--- a/util/digest/city.h
+++ b/util/digest/city.h
@@ -52,32 +52,32 @@ namespace NPrivateCityHash {
}
}
-template <class TStringType>
-inline ui64 CityHash64(const TStringType& str) {
+template <class TStringType>
+inline ui64 CityHash64(const TStringType& str) {
TStringBuf buf = NPrivateCityHash::GetBufFromStr(str);
return CityHash64(buf.data(), buf.size());
}
-template <class TStringType>
-inline ui64 CityHash64WithSeeds(const TStringType& str, ui64 seed0, ui64 seed1) {
+template <class TStringType>
+inline ui64 CityHash64WithSeeds(const TStringType& str, ui64 seed0, ui64 seed1) {
TStringBuf buf = NPrivateCityHash::GetBufFromStr(str);
return CityHash64WithSeeds(buf.data(), buf.size(), seed0, seed1);
}
-template <class TStringType>
-inline ui64 CityHash64WithSeed(const TStringType& str, ui64 seed) {
+template <class TStringType>
+inline ui64 CityHash64WithSeed(const TStringType& str, ui64 seed) {
TStringBuf buf = NPrivateCityHash::GetBufFromStr(str);
return CityHash64WithSeed(buf.data(), buf.size(), seed);
}
-template <class TStringType>
-inline uint128 CityHash128(const TStringType& str) {
+template <class TStringType>
+inline uint128 CityHash128(const TStringType& str) {
TStringBuf buf = NPrivateCityHash::GetBufFromStr(str);
return CityHash128(buf.data(), buf.size());
}
-template <class TStringType>
-inline uint128 CityHash128WithSeed(const TStringType& str, uint128 seed) {
+template <class TStringType>
+inline uint128 CityHash128WithSeed(const TStringType& str, uint128 seed) {
TStringBuf buf = NPrivateCityHash::GetBufFromStr(str);
return CityHash128WithSeed(buf.data(), buf.size(), seed);
}
diff --git a/util/digest/multi_ut.pyx b/util/digest/multi_ut.pyx
index 6dbdb32d8f..26faa0069b 100644
--- a/util/digest/multi_ut.pyx
+++ b/util/digest/multi_ut.pyx
@@ -1,5 +1,5 @@
from util.digest.multi cimport MultiHash
-from util.generic.string cimport TString
+from util.generic.string cimport TString
import pytest
import unittest
diff --git a/util/digest/sequence_ut.cpp b/util/digest/sequence_ut.cpp
index d915d7ad06..87d6102ee5 100644
--- a/util/digest/sequence_ut.cpp
+++ b/util/digest/sequence_ut.cpp
@@ -16,18 +16,18 @@ class TRangeHashTest: public TTestBase {
private:
inline void TestStrokaInt() {
const size_t canonicalHash = static_cast<size_t>(ULL(12727184940294366172));
- UNIT_ASSERT_EQUAL(canonicalHash, TRangeHash<>()(TString("12345")));
+ UNIT_ASSERT_EQUAL(canonicalHash, TRangeHash<>()(TString("12345")));
}
inline void TestIntVector() {
const size_t canonicalHash = static_cast<size_t>(ULL(1351128487744230578));
- TVector<int> testVec = {1, 2, 4, 3};
+ TVector<int> testVec = {1, 2, 4, 3};
UNIT_ASSERT_EQUAL(canonicalHash, TRangeHash<>()(testVec));
}
inline void TestOneElement() {
const int testVal = 42;
- TVector<int> testVec = {testVal};
+ TVector<int> testVec = {testVal};
UNIT_ASSERT_UNEQUAL(THash<int>()(testVal), TRangeHash<>()(testVec));
}
@@ -38,8 +38,8 @@ private:
}
inline void TestCollectionIndependancy() {
- TVector<char> testVec = {'a', 'b', 'c'};
- TString testStroka = "abc";
+ TVector<char> testVec = {'a', 'b', 'c'};
+ TString testStroka = "abc";
UNIT_ASSERT_EQUAL(TRangeHash<>()(testVec), TRangeHash<>()(testStroka));
}
};