aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/containers/bitseq/bitvector.h
diff options
context:
space:
mode:
authoryazevnul <yazevnul@yandex-team.ru>2022-02-10 16:46:48 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:48 +0300
commit9abfb1a53b7f7b791444d1378e645d8fad9b06ed (patch)
tree49e222ea1c5804306084bb3ae065bb702625360f /library/cpp/containers/bitseq/bitvector.h
parent8cbc307de0221f84c80c42dcbe07d40727537e2c (diff)
downloadydb-9abfb1a53b7f7b791444d1378e645d8fad9b06ed.tar.gz
Restoring authorship annotation for <yazevnul@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/containers/bitseq/bitvector.h')
-rw-r--r--library/cpp/containers/bitseq/bitvector.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/library/cpp/containers/bitseq/bitvector.h b/library/cpp/containers/bitseq/bitvector.h
index 9d6471ea9a..3f8fd81ee5 100644
--- a/library/cpp/containers/bitseq/bitvector.h
+++ b/library/cpp/containers/bitseq/bitvector.h
@@ -52,7 +52,7 @@ public:
}
bool Set(ui64 pos) {
- Y_ASSERT(pos < Size_);
+ Y_ASSERT(pos < Size_);
TWord& val = Data_[pos >> TTraits::DivShift];
if (val & TTraits::BitMask(pos & TTraits::ModMask))
return false;
@@ -65,7 +65,7 @@ public:
}
void Reset(ui64 pos) {
- Y_ASSERT(pos < Size_);
+ Y_ASSERT(pos < Size_);
Data_[pos >> TTraits::DivShift] &= ~TTraits::BitMask(pos & TTraits::ModMask);
}
@@ -80,7 +80,7 @@ public:
void Set(ui64 pos, TWord value, ui8 width, TWord mask) {
if (!width)
return;
- Y_ASSERT((pos + width) <= Size_);
+ Y_ASSERT((pos + width) <= Size_);
size_t word = pos >> TTraits::DivShift;
TWord shift1 = pos & TTraits::ModMask;
TWord shift2 = TTraits::NumBits - shift1;
@@ -130,12 +130,12 @@ public:
return Data_.data();
}
- void Save(IOutputStream* out) const {
+ void Save(IOutputStream* out) const {
::Save(out, Size_);
::Save(out, Data_);
}
- void Load(IInputStream* inp) {
+ void Load(IInputStream* inp) {
::Load(inp, Size_);
::Load(inp, Data_);
}
@@ -145,7 +145,7 @@ public:
Data_.size() * sizeof(TWord));
}
- void Print(IOutputStream& out, size_t truncate = 128) {
+ void Print(IOutputStream& out, size_t truncate = 128) {
for (size_t i = 0; i < Data_.size() && i < truncate; ++i) {
for (int j = TTraits::NumBits - 1; j >= 0; --j) {
size_t pos = TTraits::NumBits * i + j;