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