aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/pop_count
diff options
context:
space:
mode:
authoryazevnul <yazevnul@yandex-team.ru>2022-02-10 16:46:46 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:46 +0300
commit8cbc307de0221f84c80c42dcbe07d40727537e2c (patch)
tree625d5a673015d1df891e051033e9fcde5c7be4e5 /library/cpp/pop_count
parent30d1ef3941e0dc835be7609de5ebee66958f215a (diff)
downloadydb-8cbc307de0221f84c80c42dcbe07d40727537e2c.tar.gz
Restoring authorship annotation for <yazevnul@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/pop_count')
-rw-r--r--library/cpp/pop_count/popcount.h2
-rw-r--r--library/cpp/pop_count/popcount_ut.cpp12
2 files changed, 7 insertions, 7 deletions
diff --git a/library/cpp/pop_count/popcount.h b/library/cpp/pop_count/popcount.h
index 3d67737ed2..e22b7c0ccf 100644
--- a/library/cpp/pop_count/popcount.h
+++ b/library/cpp/pop_count/popcount.h
@@ -99,7 +99,7 @@ static inline ui32 PopCountImpl(ui64 n) {
template <class T>
static inline ui32 PopCount(T n) {
- using TCvt = TFixedWidthUnsignedInt<T>;
+ using TCvt = TFixedWidthUnsignedInt<T>;
return PopCountImpl((TCvt)n);
}
diff --git a/library/cpp/pop_count/popcount_ut.cpp b/library/cpp/pop_count/popcount_ut.cpp
index 5cd6605411..0e0ad6dbcc 100644
--- a/library/cpp/pop_count/popcount_ut.cpp
+++ b/library/cpp/pop_count/popcount_ut.cpp
@@ -4,7 +4,7 @@
#include <util/random/random.h>
-Y_UNIT_TEST_SUITE(TestPopCount) {
+Y_UNIT_TEST_SUITE(TestPopCount) {
template <class T>
static inline ui32 SlowPopCount(T t) {
ui32 ret = 0;
@@ -29,23 +29,23 @@ Y_UNIT_TEST_SUITE(TestPopCount) {
}
}
- Y_UNIT_TEST(Test8) {
+ Y_UNIT_TEST(Test8) {
Test<ui8>();
}
- Y_UNIT_TEST(Test16) {
+ Y_UNIT_TEST(Test16) {
Test<ui16>();
}
- Y_UNIT_TEST(Test32) {
+ Y_UNIT_TEST(Test32) {
Test<ui32>();
}
- Y_UNIT_TEST(Test64) {
+ Y_UNIT_TEST(Test64) {
Test<ui64>();
}
- Y_UNIT_TEST(TestPopCount) {
+ Y_UNIT_TEST(TestPopCount) {
UNIT_ASSERT_VALUES_EQUAL(PopCount(0), 0);
UNIT_ASSERT_VALUES_EQUAL(PopCount(1), 1);
UNIT_ASSERT_VALUES_EQUAL(PopCount(1 << 10), 1);