]>
git.proxmox.com Git - mirror_edk2.git/blob - BaseTools/Source/C/BrotliCompress/enc/bit_cost.c
1 /* Copyright 2013 Google Inc. All Rights Reserved.
3 Distributed under MIT license.
4 See file LICENSE for detail or copy at https://opensource.org/licenses/MIT
7 /* Functions to estimate the bit cost of Huffman trees. */
9 #include "./bit_cost.h"
11 #include "../common/constants.h"
12 #include "../common/platform.h"
13 #include <brotli/types.h>
14 #include "./fast_log.h"
15 #include "./histogram.h"
17 #if defined(__cplusplus) || defined(c_plusplus)
21 #define FN(X) X ## Literal
22 #include "./bit_cost_inc.h" /* NOLINT(build/include) */
25 #define FN(X) X ## Command
26 #include "./bit_cost_inc.h" /* NOLINT(build/include) */
29 #define FN(X) X ## Distance
30 #include "./bit_cost_inc.h" /* NOLINT(build/include) */
33 #if defined(__cplusplus) || defined(c_plusplus)