aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/bit_io/bitinput_impl.h
diff options
context:
space:
mode:
authorsolar <solar@yandex-team.ru>2022-02-10 16:49:59 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:49:59 +0300
commitda648cf6f097dd42d968802dca7734c68ef57d67 (patch)
tree7e2a3befe759a1ce261f51c2ef5bb3159257abed /library/cpp/bit_io/bitinput_impl.h
parentbee0f5f332db3abff5839ff24ac18000c161a30a (diff)
downloadydb-da648cf6f097dd42d968802dca7734c68ef57d67.tar.gz
Restoring authorship annotation for <solar@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..693dc66f11 100644
--- a/library/cpp/bit_io/bitinput_impl.h
+++ b/library/cpp/bit_io/bitinput_impl.h
@@ -43,8 +43,8 @@ namespace NBitIO {
return false;
}
Start = FStart;
- return true;
- }
+ return true;
+ }
Y_FORCE_INLINE bool ReadImpl(ui64& result, ui32 bits) {
result = (ReadUnaligned<ui64>((const void*)(Start + (BOffset >> 3))) >> (BOffset & 7)) & MaskLowerBits(bits);
@@ -67,7 +67,7 @@ namespace NBitIO {
Y_FORCE_INLINE ui64 BitOffset() const {
return BOffset;
}
-
+
Y_FORCE_INLINE bool Seek(i64 offset) {
if (offset < 0 || offset > (i64)Length)
return false;
@@ -75,7 +75,7 @@ namespace NBitIO {
Start = BOffset < FakeStart ? RealStart : FStart;
return true;
}
-
+
protected:
template <ui64 bits, typename T>
Y_FORCE_INLINE static void CopyToResultK(T& result, ui64 r64, ui64 skipbits) {