xref: /third_party/node/deps/brotli/c/enc/command.c (revision 1cb0ef41)
11cb0ef41Sopenharmony_ci/* Copyright 2013 Google Inc. All Rights Reserved.
21cb0ef41Sopenharmony_ci
31cb0ef41Sopenharmony_ci   Distributed under MIT license.
41cb0ef41Sopenharmony_ci   See file LICENSE for detail or copy at https://opensource.org/licenses/MIT
51cb0ef41Sopenharmony_ci*/
61cb0ef41Sopenharmony_ci
71cb0ef41Sopenharmony_ci#include "./command.h"
81cb0ef41Sopenharmony_ci
91cb0ef41Sopenharmony_ci#include <brotli/types.h>
101cb0ef41Sopenharmony_ci
111cb0ef41Sopenharmony_ci#if defined(__cplusplus) || defined(c_plusplus)
121cb0ef41Sopenharmony_ciextern "C" {
131cb0ef41Sopenharmony_ci#endif
141cb0ef41Sopenharmony_ci
151cb0ef41Sopenharmony_ciconst uint32_t kBrotliInsBase[BROTLI_NUM_INS_COPY_CODES] = {
161cb0ef41Sopenharmony_ci    0,  1,  2,  3,  4,   5,   6,   8,   10,   14,   18,   26,
171cb0ef41Sopenharmony_ci    34, 50, 66, 98, 130, 194, 322, 578, 1090, 2114, 6210, 22594};
181cb0ef41Sopenharmony_ciconst uint32_t kBrotliInsExtra[BROTLI_NUM_INS_COPY_CODES] = {
191cb0ef41Sopenharmony_ci    0, 0, 0, 0, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 7, 8, 9, 10, 12, 14, 24};
201cb0ef41Sopenharmony_ciconst uint32_t kBrotliCopyBase[BROTLI_NUM_INS_COPY_CODES] = {
211cb0ef41Sopenharmony_ci    2,  3,  4,  5,  6,  7,   8,   9,   10,  12,  14,   18,
221cb0ef41Sopenharmony_ci    22, 30, 38, 54, 70, 102, 134, 198, 326, 582, 1094, 2118};
231cb0ef41Sopenharmony_ciconst uint32_t kBrotliCopyExtra[BROTLI_NUM_INS_COPY_CODES] = {
241cb0ef41Sopenharmony_ci    0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 7, 8, 9, 10, 24};
251cb0ef41Sopenharmony_ci
261cb0ef41Sopenharmony_ci#if defined(__cplusplus) || defined(c_plusplus)
271cb0ef41Sopenharmony_ci}  /* extern "C" */
281cb0ef41Sopenharmony_ci#endif
29