+++ /dev/null
-/* Copyright 2013 Google Inc. All Rights Reserved.\r
-\r
- Distributed under MIT license.\r
- See file LICENSE for detail or copy at https://opensource.org/licenses/MIT\r
-*/\r
-\r
-/* Models the histograms of literals, commands and distance codes. */\r
-\r
-#ifndef BROTLI_ENC_HISTOGRAM_H_\r
-#define BROTLI_ENC_HISTOGRAM_H_\r
-\r
-#include <string.h> /* memset */\r
-\r
-#include "../common/constants.h"\r
-#include "../common/context.h"\r
-#include "../common/platform.h"\r
-#include <brotli/types.h>\r
-#include "./block_splitter.h"\r
-#include "./command.h"\r
-\r
-#if defined(__cplusplus) || defined(c_plusplus)\r
-extern "C" {\r
-#endif\r
-\r
-/* The distance symbols effectively used by "Large Window Brotli" (32-bit). */\r
-#define BROTLI_NUM_HISTOGRAM_DISTANCE_SYMBOLS 544\r
-\r
-#define FN(X) X ## Literal\r
-#define DATA_SIZE BROTLI_NUM_LITERAL_SYMBOLS\r
-#define DataType uint8_t\r
-#include "./histogram_inc.h" /* NOLINT(build/include) */\r
-#undef DataType\r
-#undef DATA_SIZE\r
-#undef FN\r
-\r
-#define FN(X) X ## Command\r
-#define DataType uint16_t\r
-#define DATA_SIZE BROTLI_NUM_COMMAND_SYMBOLS\r
-#include "./histogram_inc.h" /* NOLINT(build/include) */\r
-#undef DATA_SIZE\r
-#undef FN\r
-\r
-#define FN(X) X ## Distance\r
-#define DATA_SIZE BROTLI_NUM_HISTOGRAM_DISTANCE_SYMBOLS\r
-#include "./histogram_inc.h" /* NOLINT(build/include) */\r
-#undef DataType\r
-#undef DATA_SIZE\r
-#undef FN\r
-\r
-BROTLI_INTERNAL void BrotliBuildHistogramsWithContext(\r
- const Command* cmds, const size_t num_commands,\r
- const BlockSplit* literal_split, const BlockSplit* insert_and_copy_split,\r
- const BlockSplit* dist_split, const uint8_t* ringbuffer, size_t pos,\r
- size_t mask, uint8_t prev_byte, uint8_t prev_byte2,\r
- const ContextType* context_modes, HistogramLiteral* literal_histograms,\r
- HistogramCommand* insert_and_copy_histograms,\r
- HistogramDistance* copy_dist_histograms);\r
-\r
-#if defined(__cplusplus) || defined(c_plusplus)\r
-} /* extern "C" */\r
-#endif\r
-\r
-#endif /* BROTLI_ENC_HISTOGRAM_H_ */\r