aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/bit_io/bitoutput.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/bitoutput.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/bitoutput.h')
-rw-r--r--library/cpp/bit_io/bitoutput.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/library/cpp/bit_io/bitoutput.h b/library/cpp/bit_io/bitoutput.h
index 2b886c1f02..24dda13178 100644
--- a/library/cpp/bit_io/bitoutput.h
+++ b/library/cpp/bit_io/bitoutput.h
@@ -14,10 +14,10 @@ namespace NBitIO {
// Almost all code is hard tuned for sequential write performance.
// Use tools/bursttrie/benchmarks/bitstreams_benchmark to check your changes.
- inline constexpr ui64 BytesUp(ui64 bits) {
- return (bits + 7ULL) >> 3ULL;
- }
-
+ inline constexpr ui64 BytesUp(ui64 bits) {
+ return (bits + 7ULL) >> 3ULL;
+ }
+
template <typename TStorage>
class TBitOutputBase {
protected:
@@ -36,7 +36,7 @@ namespace NBitIO {
}
ui64 GetOffset() const {
- return Offset + BytesUp(64ULL - FreeBits);
+ return Offset + BytesUp(64ULL - FreeBits);
}
ui64 GetBitOffset() const {
@@ -83,7 +83,7 @@ namespace NBitIO {
ui64 part = data;
data >>= bits;
- part |= FastZeroIfFalse(data, NthBit64(bits));
+ part |= FastZeroIfFalse(data, NthBit64(bits));
Write(part, bits + 1ULL);
} while (data);
}