aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/containers/comptrie/comptrie_impl.cpp
diff options
context:
space:
mode:
authorgrig <grig@yandex-team.ru>2022-02-10 16:50:24 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:50:24 +0300
commitbeb63ece3a6872dfbe113104f524ab6fdbec0adc (patch)
tree5d5cb817648f650d76cf1076100726fd9b8448e8 /library/cpp/containers/comptrie/comptrie_impl.cpp
parentda383a4f674027527827ad076134241fc5da0cbf (diff)
downloadydb-beb63ece3a6872dfbe113104f524ab6fdbec0adc.tar.gz
Restoring authorship annotation for <grig@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/containers/comptrie/comptrie_impl.cpp')
-rw-r--r--library/cpp/containers/comptrie/comptrie_impl.cpp12
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 a8c1f76bfb..a116ab6d1e 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 << ".";
}
-
-}
+
+}