aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/pop_count
diff options
context:
space:
mode:
authoreeight <eeight@yandex-team.ru>2022-02-10 16:46:19 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:19 +0300
commitbd085aee9b4f7a0bee302ce687964ffb7098f986 (patch)
tree1a2c5ffcf89eb53ecd79dbc9bc0a195c27404d0c /library/cpp/pop_count
parent475c0a46f28166e83fd263badc7546377cddcabe (diff)
downloadydb-bd085aee9b4f7a0bee302ce687964ffb7098f986.tar.gz
Restoring authorship annotation for <eeight@yandex-team.ru>. Commit 2 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 272a1c1fe2..41ea3c91cc 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 ba34ef196c..7fb54a519a 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 71ea2721e6..3d67737ed2 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 02678db1c2..f0e6c014e5 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)