diff options
author | Moonchild <moonchild@palemoon.org> | 2020-11-13 15:59:29 +0000 |
---|---|---|
committer | Moonchild <moonchild@palemoon.org> | 2020-11-13 15:59:29 +0000 |
commit | d86f49ba59b2740e1e375016393c4994ec1e236e (patch) | |
tree | cb42b13d2da68dce3541953bfd049c1dc941d1d5 /modules/brotli/enc/command.c | |
parent | 870fd86e13fc95e8cf3165a134767c56d58b8987 (diff) | |
download | uxp-d86f49ba59b2740e1e375016393c4994ec1e236e.tar.gz |
Issue #1683 - Update Brotli lib to 1.0.9
Diffstat (limited to 'modules/brotli/enc/command.c')
-rw-r--r-- | modules/brotli/enc/command.c | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/modules/brotli/enc/command.c b/modules/brotli/enc/command.c new file mode 100644 index 0000000000..5e6c249196 --- /dev/null +++ b/modules/brotli/enc/command.c @@ -0,0 +1,28 @@ +/* Copyright 2013 Google Inc. All Rights Reserved. + + Distributed under MIT license. + See file LICENSE for detail or copy at https://opensource.org/licenses/MIT +*/ + +#include "./command.h" + +#include <brotli/types.h> + +#if defined(__cplusplus) || defined(c_plusplus) +extern "C" { +#endif + +const uint32_t kBrotliInsBase[BROTLI_NUM_INS_COPY_CODES] = { + 0, 1, 2, 3, 4, 5, 6, 8, 10, 14, 18, 26, + 34, 50, 66, 98, 130, 194, 322, 578, 1090, 2114, 6210, 22594}; +const uint32_t kBrotliInsExtra[BROTLI_NUM_INS_COPY_CODES] = { + 0, 0, 0, 0, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 7, 8, 9, 10, 12, 14, 24}; +const uint32_t kBrotliCopyBase[BROTLI_NUM_INS_COPY_CODES] = { + 2, 3, 4, 5, 6, 7, 8, 9, 10, 12, 14, 18, + 22, 30, 38, 54, 70, 102, 134, 198, 326, 582, 1094, 2118}; +const uint32_t kBrotliCopyExtra[BROTLI_NUM_INS_COPY_CODES] = { + 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 7, 8, 9, 10, 24}; + +#if defined(__cplusplus) || defined(c_plusplus) +} /* extern "C" */ +#endif |