aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/pop_count
diff options
context:
space:
mode:
authoreeight <eeight@yandex-team.ru>2022-02-10 16:46:18 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:18 +0300
commit475c0a46f28166e83fd263badc7546377cddcabe (patch)
tree39c5a49b8aaad78fe390b6f1f2886bdbda40f3e7 /library/cpp/pop_count
parenta6e0145a095c7bb3770d6e07aee301de5c73f96e (diff)
downloadydb-475c0a46f28166e83fd263badc7546377cddcabe.tar.gz
Restoring authorship annotation for <eeight@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/pop_count')
-rw-r--r--library/cpp/pop_count/benchmark/main.cpp2
-rw-r--r--library/cpp/pop_count/benchmark/ya.make2
-rw-r--r--library/cpp/pop_count/popcount.h12
-rw-r--r--library/cpp/pop_count/ut/ya.make2
4 files changed, 9 insertions, 9 deletions
diff --git a/library/cpp/pop_count/benchmark/main.cpp b/library/cpp/pop_count/benchmark/main.cpp
index 41ea3c91cc..272a1c1fe2 100644
--- a/library/cpp/pop_count/benchmark/main.cpp
+++ b/library/cpp/pop_count/benchmark/main.cpp
@@ -2,7 +2,7 @@
#include <util/datetime/cputimer.h>
#include <util/system/type_name.h>
-#include <library/cpp/pop_count/popcount.h>
+#include <library/cpp/pop_count/popcount.h>
#include <library/cpp/testing/benchmark/bench.h>
template <class F, class I>
diff --git a/library/cpp/pop_count/benchmark/ya.make b/library/cpp/pop_count/benchmark/ya.make
index 7fb54a519a..ba34ef196c 100644
--- a/library/cpp/pop_count/benchmark/ya.make
+++ b/library/cpp/pop_count/benchmark/ya.make
@@ -4,7 +4,7 @@ Y_BENCHMARK()
PEERDIR(
util/draft
- library/cpp/pop_count
+ library/cpp/pop_count
)
SRCS(
diff --git a/library/cpp/pop_count/popcount.h b/library/cpp/pop_count/popcount.h
index 3d67737ed2..71ea2721e6 100644
--- a/library/cpp/pop_count/popcount.h
+++ b/library/cpp/pop_count/popcount.h
@@ -1,9 +1,9 @@
#pragma once
#include <util/generic/typelist.h>
-#include <util/system/cpu_id.h>
+#include <util/system/cpu_id.h>
#include <util/system/defaults.h>
-#include <util/system/hi_lo.h>
+#include <util/system/hi_lo.h>
#include <util/system/platform.h>
#if defined(_MSC_VER)
@@ -38,7 +38,7 @@ static inline ui32 PopCountImpl(ui32 n) {
return __popcnt(n);
#else
#if defined(_x86_64_)
- if (NX86::CachedHavePOPCNT()) {
+ if (NX86::CachedHavePOPCNT()) {
ui32 r;
__asm__("popcnt %1, %0;"
@@ -61,7 +61,7 @@ static inline ui32 PopCountImpl(ui32 n) {
#endif
#endif
- return PopCountImpl((ui16)Lo16(n)) + PopCountImpl((ui16)Hi16(n));
+ return PopCountImpl((ui16)Lo16(n)) + PopCountImpl((ui16)Hi16(n));
#endif
}
@@ -70,7 +70,7 @@ static inline ui32 PopCountImpl(ui64 n) {
return __popcnt64(n);
#else
#if defined(_x86_64_)
- if (NX86::CachedHavePOPCNT()) {
+ if (NX86::CachedHavePOPCNT()) {
ui64 r;
__asm__("popcnt %1, %0;"
@@ -93,7 +93,7 @@ static inline ui32 PopCountImpl(ui64 n) {
#endif
#endif
- return PopCountImpl((ui32)Lo32(n)) + PopCountImpl((ui32)Hi32(n));
+ return PopCountImpl((ui32)Lo32(n)) + PopCountImpl((ui32)Hi32(n));
#endif
}
diff --git a/library/cpp/pop_count/ut/ya.make b/library/cpp/pop_count/ut/ya.make
index f0e6c014e5..02678db1c2 100644
--- a/library/cpp/pop_count/ut/ya.make
+++ b/library/cpp/pop_count/ut/ya.make
@@ -1,4 +1,4 @@
-UNITTEST_FOR(library/cpp/pop_count)
+UNITTEST_FOR(library/cpp/pop_count)
OWNER(g:util)