diff options
author | thegeorg <thegeorg@yandex-team.ru> | 2022-02-10 16:45:12 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:45:12 +0300 |
commit | 49116032d905455a7b1c994e4a696afc885c1e71 (patch) | |
tree | be835aa92c6248212e705f25388ebafcf84bc7a1 /library/cpp/codecs/pfor_codec.h | |
parent | 4e839db24a3bbc9f1c610c43d6faaaa99824dcca (diff) | |
download | ydb-49116032d905455a7b1c994e4a696afc885c1e71.tar.gz |
Restoring authorship annotation for <thegeorg@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/codecs/pfor_codec.h')
-rw-r--r-- | library/cpp/codecs/pfor_codec.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/library/cpp/codecs/pfor_codec.h b/library/cpp/codecs/pfor_codec.h index 31d71aafb5..d7d4bb8bf4 100644 --- a/library/cpp/codecs/pfor_codec.h +++ b/library/cpp/codecs/pfor_codec.h @@ -32,7 +32,7 @@ namespace NCodecs { } TString GetName() const override { - return ToString(MyName()); + return ToString(MyName()); } ui8 Encode(TStringBuf s, TBuffer& b) const override { @@ -52,15 +52,15 @@ namespace NCodecs { s = TStringBuf{db.data(), db.size()}; } - TArrayRef<const TValue> tin{(const TValue*)s.data(), s.size() / sizeof(TValue)}; + TArrayRef<const TValue> tin{(const TValue*)s.data(), s.size() / sizeof(TValue)}; - const ui64 sz = tin.size(); + const ui64 sz = tin.size(); ui64 bitcounts[BitsInT + 1]; Zero(bitcounts); ui32 zeros = 0; - for (const TValue* it = tin.begin(); it != tin.end(); ++it) { + for (const TValue* it = tin.begin(); it != tin.end(); ++it) { TUnsigned v = 1 + (TUnsigned)*it; ui64 l = MostSignificantBit(v) + 1; ++bitcounts[l]; @@ -105,7 +105,7 @@ namespace NCodecs { bout.Write(hasexceptions, 1); bout.Write(optimalbits, 6); - for (const TValue* it = tin.begin(); it != tin.end(); ++it) { + for (const TValue* it = tin.begin(); it != tin.end(); ++it) { TUnsigned word = 1 + (TUnsigned)*it; ui64 len = MostSignificantBit(word) + 1; if (len > optimalbits || !word) { |