diff options
author | Devtools Arcadia <arcadia-devtools@yandex-team.ru> | 2022-02-07 18:08:42 +0300 |
---|---|---|
committer | Devtools Arcadia <arcadia-devtools@mous.vla.yp-c.yandex.net> | 2022-02-07 18:08:42 +0300 |
commit | 1110808a9d39d4b808aef724c861a2e1a38d2a69 (patch) | |
tree | e26c9fed0de5d9873cce7e00bc214573dc2195b7 /library/cpp/packers/packers.cpp | |
download | ydb-1110808a9d39d4b808aef724c861a2e1a38d2a69.tar.gz |
intermediate changes
ref:cde9a383711a11544ce7e107a78147fb96cc4029
Diffstat (limited to 'library/cpp/packers/packers.cpp')
-rw-r--r-- | library/cpp/packers/packers.cpp | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/library/cpp/packers/packers.cpp b/library/cpp/packers/packers.cpp new file mode 100644 index 0000000000..54615a9e7f --- /dev/null +++ b/library/cpp/packers/packers.cpp @@ -0,0 +1,20 @@ +#include "packers.h" +#include "region_packer.h" + +namespace NPackers { +#define _X_4(X) X, X, X, X +#define _X_8(X) _X_4(X), _X_4(X) +#define _X_16(X) _X_8(X), _X_8(X) +#define _X_32(X) _X_16(X), _X_16(X) +#define _X_64(X) _X_32(X), _X_32(X) +#define _X_128(X) _X_64(X), _X_64(X) + + const ui8 SkipTable[256] = {_X_128(1), _X_64(2), _X_32(3), _X_16(4), _X_8(5), _X_4(6), 7, 7, 8, 9}; + +#undef _X_4 +#undef _X_8 +#undef _X_16 +#undef _X_32 +#undef _X_64 +#undef _X_128 +} |