aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/pop_count/popcount.h
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/popcount.h
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/popcount.h')
-rw-r--r--library/cpp/pop_count/popcount.h12
1 files changed, 6 insertions, 6 deletions
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
}