aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/bit_io/bitinput_impl.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/bit_io/bitinput_impl.h
parenta6e0145a095c7bb3770d6e07aee301de5c73f96e (diff)
downloadydb-475c0a46f28166e83fd263badc7546377cddcabe.tar.gz
Restoring authorship annotation for <eeight@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/bit_io/bitinput_impl.h')
-rw-r--r--library/cpp/bit_io/bitinput_impl.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/library/cpp/bit_io/bitinput_impl.h b/library/cpp/bit_io/bitinput_impl.h
index b13fbef101..e5125c2154 100644
--- a/library/cpp/bit_io/bitinput_impl.h
+++ b/library/cpp/bit_io/bitinput_impl.h
@@ -33,7 +33,7 @@ namespace NBitIO {
protected:
template <ui32 bits>
Y_FORCE_INLINE bool ReadKImpl(ui64& result) {
- result = (ReadUnaligned<ui64>((const void*)(Start + (BOffset >> 3))) >> (BOffset & 7)) & Mask64(bits);
+ result = (ReadUnaligned<ui64>((const void*)(Start + (BOffset >> 3))) >> (BOffset & 7)) & Mask64(bits);
BOffset += bits;
if (BOffset < FakeStart)
return true;
@@ -79,7 +79,7 @@ namespace NBitIO {
protected:
template <ui64 bits, typename T>
Y_FORCE_INLINE static void CopyToResultK(T& result, ui64 r64, ui64 skipbits) {
- result = (result & ~(Mask64(bits) << skipbits)) | (r64 << skipbits);
+ result = (result & ~(Mask64(bits) << skipbits)) | (r64 << skipbits);
}
template <typename T>
@@ -92,8 +92,8 @@ namespace NBitIO {
Y_FORCE_INLINE bool ReadWordsImpl(ui64& data) {
data = 0;
- const ui64 haveMore = NthBit64(bits);
- const ui64 mask = Mask64(bits);
+ const ui64 haveMore = NthBit64(bits);
+ const ui64 mask = Mask64(bits);
ui64 current = 0;
ui64 byteNo = 0;