aboutsummaryrefslogtreecommitdiffstats
path: root/util/generic/bitmap.h
diff options
context:
space:
mode:
authorAlexander Rutkovsky <alexvru@mail.ru>2022-02-10 16:47:40 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:47:40 +0300
commit667a4ee7da2e004784b9c3cfab824a81e96f4d66 (patch)
treec0748b5dcbade83af788c0abfa89c0383d6b779c /util/generic/bitmap.h
parentf3646f91e0de459836a7800b9ce3e8dc57a2ab3a (diff)
downloadydb-667a4ee7da2e004784b9c3cfab824a81e96f4d66.tar.gz
Restoring authorship annotation for Alexander Rutkovsky <alexvru@mail.ru>. Commit 2 of 2.
Diffstat (limited to 'util/generic/bitmap.h')
-rw-r--r--util/generic/bitmap.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/util/generic/bitmap.h b/util/generic/bitmap.h
index adddfc67f5..f77d182460 100644
--- a/util/generic/bitmap.h
+++ b/util/generic/bitmap.h
@@ -402,16 +402,16 @@ private:
const size_t endChunk = end >> DivCount;
const size_t endBitOffset = end & ModMask;
- size_t bitOffset = startBitOffset;
- for (size_t chunk = startChunk; chunk <= endChunk; ++chunk) {
- TChunk updateMask = FullChunk << bitOffset;
- if (chunk == endChunk) {
- updateMask ^= FullChunk << endBitOffset;
- if (!updateMask)
- break;
+ size_t bitOffset = startBitOffset;
+ for (size_t chunk = startChunk; chunk <= endChunk; ++chunk) {
+ TChunk updateMask = FullChunk << bitOffset;
+ if (chunk == endChunk) {
+ updateMask ^= FullChunk << endBitOffset;
+ if (!updateMask)
+ break;
}
- Mask.Data[chunk] = TUpdateOp::Op(Mask.Data[chunk], updateMask);
- bitOffset = 0;
+ Mask.Data[chunk] = TUpdateOp::Op(Mask.Data[chunk], updateMask);
+ bitOffset = 0;
}
}