1 /* Copyright 2013 Google Inc. All Rights Reserved. 2 3 Distributed under MIT license. 4 See file LICENSE for detail or copy at https://opensource.org/licenses/MIT 5 */ 6 7 /* Functions to estimate the bit cost of Huffman trees. */ 8 9 #include "./bit_cost.h" 10 11 #include "../common/constants.h" 12 #include "../common/platform.h" 13 #include <brotli/types.h> 14 #include "./fast_log.h" 15 #include "./histogram.h" 16 17 #if defined(__cplusplus) || defined(c_plusplus) 18 extern "C" { 19 #endif 20 21 #define FN(X) X ## Literal 22 #include "./bit_cost_inc.h" /* NOLINT(build/include) */ 23 #undef FN 24 25 #define FN(X) X ## Command 26 #include "./bit_cost_inc.h" /* NOLINT(build/include) */ 27 #undef FN 28 29 #define FN(X) X ## Distance 30 #include "./bit_cost_inc.h" /* NOLINT(build/include) */ 31 #undef FN 32 33 #if defined(__cplusplus) || defined(c_plusplus) 34 } /* extern "C" */ 35 #endif 36