aboutsummaryrefslogtreecommitdiffstats
path: root/util/digest/murmur_ut.cpp
diff options
context:
space:
mode:
authorthegeorg <thegeorg@yandex-team.ru>2022-02-10 16:45:08 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:45:08 +0300
commit4e839db24a3bbc9f1c610c43d6faaaa99824dcca (patch)
tree506dac10f5df94fab310584ee51b24fc5a081c22 /util/digest/murmur_ut.cpp
parent2d37894b1b037cf24231090eda8589bbb44fb6fc (diff)
downloadydb-4e839db24a3bbc9f1c610c43d6faaaa99824dcca.tar.gz
Restoring authorship annotation for <thegeorg@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'util/digest/murmur_ut.cpp')
-rw-r--r--util/digest/murmur_ut.cpp48
1 files changed, 24 insertions, 24 deletions
diff --git a/util/digest/murmur_ut.cpp b/util/digest/murmur_ut.cpp
index 29287668bc..ac3bc60563 100644
--- a/util/digest/murmur_ut.cpp
+++ b/util/digest/murmur_ut.cpp
@@ -6,9 +6,9 @@
class TMurmurHashTest: public TTestBase {
UNIT_TEST_SUITE(TMurmurHashTest);
UNIT_TEST(TestHash32)
- UNIT_TEST(TestUnalignedHash32)
+ UNIT_TEST(TestUnalignedHash32)
UNIT_TEST(TestHash64)
- UNIT_TEST(TestUnalignedHash64)
+ UNIT_TEST(TestUnalignedHash64)
UNIT_TEST(TestWrapperBiggerTypes)
UNIT_TEST_SUITE_END();
@@ -27,17 +27,17 @@ private:
Test<ui32>(buf, 253, 80030810UL);
}
- inline void TestUnalignedHash32() {
- ui8 buf[257];
- ui8* unalignedBuf = buf + 1;
-
- for (size_t i = 0; i < 256; ++i) {
- unalignedBuf[i] = i;
- }
-
- Test<ui32>(unalignedBuf, 256, 2373126550UL);
- }
-
+ inline void TestUnalignedHash32() {
+ ui8 buf[257];
+ ui8* unalignedBuf = buf + 1;
+
+ for (size_t i = 0; i < 256; ++i) {
+ unalignedBuf[i] = i;
+ }
+
+ Test<ui32>(unalignedBuf, 256, 2373126550UL);
+ }
+
inline void TestHash64() {
ui8 buf[256];
@@ -52,17 +52,17 @@ private:
Test<ui64>(buf, 253, ULL(11553864555081396353));
}
- inline void TestUnalignedHash64() {
- ui8 buf[257];
- ui8* unalignedBuf = buf + 1;
-
- for (size_t i = 0; i < 256; ++i) {
- unalignedBuf[i] = i;
- }
-
- Test<ui64>(unalignedBuf, 256, ULL(12604435678857905857));
- }
-
+ inline void TestUnalignedHash64() {
+ ui8 buf[257];
+ ui8* unalignedBuf = buf + 1;
+
+ for (size_t i = 0; i < 256; ++i) {
+ unalignedBuf[i] = i;
+ }
+
+ Test<ui64>(unalignedBuf, 256, ULL(12604435678857905857));
+ }
+
inline void TestWrapperBiggerTypes() {
ui32 buf[] = {24, 42};
TestWrapper<ui32, ui32>({buf, buf + 2}, MurmurHash<ui32>(buf, sizeof(ui32) * 2));