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/* Functions to estimate the bit cost of Huffman trees. */
81cb0ef41Sopenharmony_ci
91cb0ef41Sopenharmony_ci#include "./bit_cost.h"
101cb0ef41Sopenharmony_ci
111cb0ef41Sopenharmony_ci#include "../common/constants.h"
121cb0ef41Sopenharmony_ci#include "../common/platform.h"
131cb0ef41Sopenharmony_ci#include <brotli/types.h>
141cb0ef41Sopenharmony_ci#include "./fast_log.h"
151cb0ef41Sopenharmony_ci#include "./histogram.h"
161cb0ef41Sopenharmony_ci
171cb0ef41Sopenharmony_ci#if defined(__cplusplus) || defined(c_plusplus)
181cb0ef41Sopenharmony_ciextern "C" {
191cb0ef41Sopenharmony_ci#endif
201cb0ef41Sopenharmony_ci
211cb0ef41Sopenharmony_ci#define FN(X) X ## Literal
221cb0ef41Sopenharmony_ci#include "./bit_cost_inc.h"  /* NOLINT(build/include) */
231cb0ef41Sopenharmony_ci#undef FN
241cb0ef41Sopenharmony_ci
251cb0ef41Sopenharmony_ci#define FN(X) X ## Command
261cb0ef41Sopenharmony_ci#include "./bit_cost_inc.h"  /* NOLINT(build/include) */
271cb0ef41Sopenharmony_ci#undef FN
281cb0ef41Sopenharmony_ci
291cb0ef41Sopenharmony_ci#define FN(X) X ## Distance
301cb0ef41Sopenharmony_ci#include "./bit_cost_inc.h"  /* NOLINT(build/include) */
311cb0ef41Sopenharmony_ci#undef FN
321cb0ef41Sopenharmony_ci
331cb0ef41Sopenharmony_ci#if defined(__cplusplus) || defined(c_plusplus)
341cb0ef41Sopenharmony_ci}  /* extern "C" */
351cb0ef41Sopenharmony_ci#endif
36