diff options
| author | grig <[email protected]> | 2022-02-10 16:50:24 +0300 |
|---|---|---|
| committer | Daniil Cherednik <[email protected]> | 2022-02-10 16:50:24 +0300 |
| commit | beb63ece3a6872dfbe113104f524ab6fdbec0adc (patch) | |
| tree | 5d5cb817648f650d76cf1076100726fd9b8448e8 /library/cpp/containers/comptrie/comptrie_impl.cpp | |
| parent | da383a4f674027527827ad076134241fc5da0cbf (diff) | |
Restoring authorship annotation for <[email protected]>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/containers/comptrie/comptrie_impl.cpp')
| -rw-r--r-- | library/cpp/containers/comptrie/comptrie_impl.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/library/cpp/containers/comptrie/comptrie_impl.cpp b/library/cpp/containers/comptrie/comptrie_impl.cpp index a8c1f76bfb4..a116ab6d1ef 100644 --- a/library/cpp/containers/comptrie/comptrie_impl.cpp +++ b/library/cpp/containers/comptrie/comptrie_impl.cpp @@ -8,26 +8,26 @@ namespace NCompactTrie { size_t MeasureOffset(size_t offset) { int n = 0; - + while (offset) { offset >>= 8; ++n; } return n; - } + } size_t PackOffset(char* buffer, size_t offset) { size_t len = MeasureOffset(offset); size_t i = len; - + while (i--) { buffer[i] = (char)(offset & 0xFF); offset >>= 8; } return len; - } + } void ShowProgress(size_t n) { if (n % 1000000 == 0) @@ -35,5 +35,5 @@ namespace NCompactTrie { else if (n % 20000 == 0) Cerr << "."; } - -} + +} |
