aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/bit_io/bitinput_impl.h
diff options
context:
space:
mode:
authorbreakneck <breakneck@yandex-team.ru>2022-02-10 16:47:58 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:47:58 +0300
commite2021f9a0e54d13b7c48796318b13b66dc625e74 (patch)
tree5aed1691033eaf399ab80a10a137238922035fa8 /library/cpp/bit_io/bitinput_impl.h
parent83602b1b564b92a80a1526d113fa2846661dd10e (diff)
downloadydb-e2021f9a0e54d13b7c48796318b13b66dc625e74.tar.gz
Restoring authorship annotation for <breakneck@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.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/library/cpp/bit_io/bitinput_impl.h b/library/cpp/bit_io/bitinput_impl.h
index b13fbef101..0a5320790c 100644
--- a/library/cpp/bit_io/bitinput_impl.h
+++ b/library/cpp/bit_io/bitinput_impl.h
@@ -32,7 +32,7 @@ namespace NBitIO {
protected:
template <ui32 bits>
- Y_FORCE_INLINE bool ReadKImpl(ui64& result) {
+ Y_FORCE_INLINE bool ReadKImpl(ui64& result) {
result = (ReadUnaligned<ui64>((const void*)(Start + (BOffset >> 3))) >> (BOffset & 7)) & Mask64(bits);
BOffset += bits;
if (BOffset < FakeStart)
@@ -46,7 +46,7 @@ namespace NBitIO {
return true;
}
- Y_FORCE_INLINE bool ReadImpl(ui64& result, ui32 bits) {
+ Y_FORCE_INLINE bool ReadImpl(ui64& result, ui32 bits) {
result = (ReadUnaligned<ui64>((const void*)(Start + (BOffset >> 3))) >> (BOffset & 7)) & MaskLowerBits(bits);
BOffset += bits;
if (BOffset < FakeStart)
@@ -60,15 +60,15 @@ namespace NBitIO {
return true;
}
- Y_FORCE_INLINE bool EofImpl() const {
+ Y_FORCE_INLINE bool EofImpl() const {
return BOffset >= Length;
}
- Y_FORCE_INLINE ui64 BitOffset() const {
+ Y_FORCE_INLINE ui64 BitOffset() const {
return BOffset;
}
- Y_FORCE_INLINE bool Seek(i64 offset) {
+ Y_FORCE_INLINE bool Seek(i64 offset) {
if (offset < 0 || offset > (i64)Length)
return false;
BOffset = offset;
@@ -78,18 +78,18 @@ namespace NBitIO {
protected:
template <ui64 bits, typename T>
- Y_FORCE_INLINE static void CopyToResultK(T& result, ui64 r64, ui64 skipbits) {
+ Y_FORCE_INLINE static void CopyToResultK(T& result, ui64 r64, ui64 skipbits) {
result = (result & ~(Mask64(bits) << skipbits)) | (r64 << skipbits);
}
template <typename T>
- Y_FORCE_INLINE static void CopyToResult(T& result, ui64 r64, ui64 bits, ui64 skipbits) {
+ Y_FORCE_INLINE static void CopyToResult(T& result, ui64 r64, ui64 bits, ui64 skipbits) {
result = (result & InverseMaskLowerBits(bits, skipbits)) | (r64 << skipbits);
}
public:
template <ui64 bits>
- Y_FORCE_INLINE bool ReadWordsImpl(ui64& data) {
+ Y_FORCE_INLINE bool ReadWordsImpl(ui64& data) {
data = 0;
const ui64 haveMore = NthBit64(bits);