mirror of
https://github.com/google/brotli.git
synced 2024-11-27 22:00:10 +00:00
Strip "./" in includes (#925)
Co-authored-by: Eugene Kliuchnikov <eustas@chromium.org>
This commit is contained in:
parent
698e3a7f9d
commit
62662f87cd
@ -4,7 +4,7 @@
|
|||||||
See file LICENSE for detail or copy at https://opensource.org/licenses/MIT
|
See file LICENSE for detail or copy at https://opensource.org/licenses/MIT
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "./constants.h"
|
#include "constants.h"
|
||||||
|
|
||||||
const BrotliPrefixCodeRange
|
const BrotliPrefixCodeRange
|
||||||
_kBrotliPrefixCodeRanges[BROTLI_NUM_BLOCK_LEN_SYMBOLS] = {
|
_kBrotliPrefixCodeRanges[BROTLI_NUM_BLOCK_LEN_SYMBOLS] = {
|
||||||
|
@ -12,7 +12,7 @@
|
|||||||
#ifndef BROTLI_COMMON_CONSTANTS_H_
|
#ifndef BROTLI_COMMON_CONSTANTS_H_
|
||||||
#define BROTLI_COMMON_CONSTANTS_H_
|
#define BROTLI_COMMON_CONSTANTS_H_
|
||||||
|
|
||||||
#include "./platform.h"
|
#include "platform.h"
|
||||||
#include <brotli/port.h>
|
#include <brotli/port.h>
|
||||||
#include <brotli/types.h>
|
#include <brotli/types.h>
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#include "./context.h"
|
#include "context.h"
|
||||||
|
|
||||||
#include <brotli/types.h>
|
#include <brotli/types.h>
|
||||||
|
|
||||||
|
@ -4,8 +4,8 @@
|
|||||||
See file LICENSE for detail or copy at https://opensource.org/licenses/MIT
|
See file LICENSE for detail or copy at https://opensource.org/licenses/MIT
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "./dictionary.h"
|
#include "dictionary.h"
|
||||||
#include "./platform.h"
|
#include "platform.h"
|
||||||
|
|
||||||
#if defined(__cplusplus) || defined(c_plusplus)
|
#if defined(__cplusplus) || defined(c_plusplus)
|
||||||
extern "C" {
|
extern "C" {
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
||||||
#include "./platform.h"
|
#include "platform.h"
|
||||||
#include <brotli/types.h>
|
#include <brotli/types.h>
|
||||||
|
|
||||||
/* Default brotli_alloc_func */
|
/* Default brotli_alloc_func */
|
||||||
|
@ -12,9 +12,9 @@
|
|||||||
#include <stdlib.h> /* malloc, free */
|
#include <stdlib.h> /* malloc, free */
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
#include "./dictionary.h"
|
#include "dictionary.h"
|
||||||
#include "./platform.h"
|
#include "platform.h"
|
||||||
#include "./shared_dictionary_internal.h"
|
#include "shared_dictionary_internal.h"
|
||||||
|
|
||||||
#if defined(__cplusplus) || defined(c_plusplus)
|
#if defined(__cplusplus) || defined(c_plusplus)
|
||||||
extern "C" {
|
extern "C" {
|
||||||
|
@ -9,9 +9,9 @@
|
|||||||
#ifndef BROTLI_COMMON_SHARED_DICTIONARY_INTERNAL_H_
|
#ifndef BROTLI_COMMON_SHARED_DICTIONARY_INTERNAL_H_
|
||||||
#define BROTLI_COMMON_SHARED_DICTIONARY_INTERNAL_H_
|
#define BROTLI_COMMON_SHARED_DICTIONARY_INTERNAL_H_
|
||||||
|
|
||||||
#include "./dictionary.h"
|
#include "dictionary.h"
|
||||||
#include <brotli/shared_dictionary.h>
|
#include <brotli/shared_dictionary.h>
|
||||||
#include "./transform.h"
|
#include "transform.h"
|
||||||
#include <brotli/types.h>
|
#include <brotli/types.h>
|
||||||
|
|
||||||
#if defined(__cplusplus) || defined(c_plusplus)
|
#if defined(__cplusplus) || defined(c_plusplus)
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
See file LICENSE for detail or copy at https://opensource.org/licenses/MIT
|
See file LICENSE for detail or copy at https://opensource.org/licenses/MIT
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "./transform.h"
|
#include "transform.h"
|
||||||
|
|
||||||
#if defined(__cplusplus) || defined(c_plusplus)
|
#if defined(__cplusplus) || defined(c_plusplus)
|
||||||
extern "C" {
|
extern "C" {
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
|
|
||||||
/* Bit reading helpers */
|
/* Bit reading helpers */
|
||||||
|
|
||||||
#include "./bit_reader.h"
|
#include "bit_reader.h"
|
||||||
|
|
||||||
#include "../common/platform.h"
|
#include "../common/platform.h"
|
||||||
#include <brotli/types.h>
|
#include <brotli/types.h>
|
||||||
|
@ -16,10 +16,10 @@
|
|||||||
#include "../common/shared_dictionary_internal.h"
|
#include "../common/shared_dictionary_internal.h"
|
||||||
#include "../common/transform.h"
|
#include "../common/transform.h"
|
||||||
#include "../common/version.h"
|
#include "../common/version.h"
|
||||||
#include "./bit_reader.h"
|
#include "bit_reader.h"
|
||||||
#include "./huffman.h"
|
#include "huffman.h"
|
||||||
#include "./prefix.h"
|
#include "prefix.h"
|
||||||
#include "./state.h"
|
#include "state.h"
|
||||||
|
|
||||||
#if defined(BROTLI_TARGET_NEON)
|
#if defined(BROTLI_TARGET_NEON)
|
||||||
#include <arm_neon.h>
|
#include <arm_neon.h>
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
|
|
||||||
/* Utilities for building Huffman decoding tables. */
|
/* Utilities for building Huffman decoding tables. */
|
||||||
|
|
||||||
#include "./huffman.h"
|
#include "huffman.h"
|
||||||
|
|
||||||
#include <string.h> /* memcpy, memset */
|
#include <string.h> /* memcpy, memset */
|
||||||
|
|
||||||
|
@ -4,13 +4,13 @@
|
|||||||
See file LICENSE for detail or copy at https://opensource.org/licenses/MIT
|
See file LICENSE for detail or copy at https://opensource.org/licenses/MIT
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "./state.h"
|
#include "state.h"
|
||||||
|
|
||||||
#include <stdlib.h> /* free, malloc */
|
#include <stdlib.h> /* free, malloc */
|
||||||
|
|
||||||
#include "../common/dictionary.h"
|
#include "../common/dictionary.h"
|
||||||
#include <brotli/types.h>
|
#include <brotli/types.h>
|
||||||
#include "./huffman.h"
|
#include "huffman.h"
|
||||||
|
|
||||||
#if defined(__cplusplus) || defined(c_plusplus)
|
#if defined(__cplusplus) || defined(c_plusplus)
|
||||||
extern "C" {
|
extern "C" {
|
||||||
|
@ -15,8 +15,8 @@
|
|||||||
#include <brotli/shared_dictionary.h>
|
#include <brotli/shared_dictionary.h>
|
||||||
#include "../common/transform.h"
|
#include "../common/transform.h"
|
||||||
#include <brotli/types.h>
|
#include <brotli/types.h>
|
||||||
#include "./bit_reader.h"
|
#include "bit_reader.h"
|
||||||
#include "./huffman.h"
|
#include "huffman.h"
|
||||||
|
|
||||||
#if defined(__cplusplus) || defined(c_plusplus)
|
#if defined(__cplusplus) || defined(c_plusplus)
|
||||||
extern "C" {
|
extern "C" {
|
||||||
|
@ -6,18 +6,18 @@
|
|||||||
|
|
||||||
/* Function to find backward reference copies. */
|
/* Function to find backward reference copies. */
|
||||||
|
|
||||||
#include "./backward_references.h"
|
#include "backward_references.h"
|
||||||
|
|
||||||
#include "../common/constants.h"
|
#include "../common/constants.h"
|
||||||
#include "../common/dictionary.h"
|
#include "../common/dictionary.h"
|
||||||
#include "../common/platform.h"
|
#include "../common/platform.h"
|
||||||
#include <brotli/types.h>
|
#include <brotli/types.h>
|
||||||
#include "./command.h"
|
#include "command.h"
|
||||||
#include "./compound_dictionary.h"
|
#include "compound_dictionary.h"
|
||||||
#include "./dictionary_hash.h"
|
#include "dictionary_hash.h"
|
||||||
#include "./encoder_dict.h"
|
#include "encoder_dict.h"
|
||||||
#include "./memory.h"
|
#include "memory.h"
|
||||||
#include "./quality.h"
|
#include "quality.h"
|
||||||
|
|
||||||
#if defined(__cplusplus) || defined(c_plusplus)
|
#if defined(__cplusplus) || defined(c_plusplus)
|
||||||
extern "C" {
|
extern "C" {
|
||||||
@ -57,62 +57,62 @@ static BROTLI_INLINE size_t ComputeDistanceCode(size_t distance,
|
|||||||
|
|
||||||
#define HASHER() H2
|
#define HASHER() H2
|
||||||
/* NOLINTNEXTLINE(build/include) */
|
/* NOLINTNEXTLINE(build/include) */
|
||||||
#include "./backward_references_inc.h"
|
#include "backward_references_inc.h"
|
||||||
#undef HASHER
|
#undef HASHER
|
||||||
|
|
||||||
#define HASHER() H3
|
#define HASHER() H3
|
||||||
/* NOLINTNEXTLINE(build/include) */
|
/* NOLINTNEXTLINE(build/include) */
|
||||||
#include "./backward_references_inc.h"
|
#include "backward_references_inc.h"
|
||||||
#undef HASHER
|
#undef HASHER
|
||||||
|
|
||||||
#define HASHER() H4
|
#define HASHER() H4
|
||||||
/* NOLINTNEXTLINE(build/include) */
|
/* NOLINTNEXTLINE(build/include) */
|
||||||
#include "./backward_references_inc.h"
|
#include "backward_references_inc.h"
|
||||||
#undef HASHER
|
#undef HASHER
|
||||||
|
|
||||||
#define HASHER() H5
|
#define HASHER() H5
|
||||||
/* NOLINTNEXTLINE(build/include) */
|
/* NOLINTNEXTLINE(build/include) */
|
||||||
#include "./backward_references_inc.h"
|
#include "backward_references_inc.h"
|
||||||
#undef HASHER
|
#undef HASHER
|
||||||
|
|
||||||
#define HASHER() H6
|
#define HASHER() H6
|
||||||
/* NOLINTNEXTLINE(build/include) */
|
/* NOLINTNEXTLINE(build/include) */
|
||||||
#include "./backward_references_inc.h"
|
#include "backward_references_inc.h"
|
||||||
#undef HASHER
|
#undef HASHER
|
||||||
|
|
||||||
#define HASHER() H40
|
#define HASHER() H40
|
||||||
/* NOLINTNEXTLINE(build/include) */
|
/* NOLINTNEXTLINE(build/include) */
|
||||||
#include "./backward_references_inc.h"
|
#include "backward_references_inc.h"
|
||||||
#undef HASHER
|
#undef HASHER
|
||||||
|
|
||||||
#define HASHER() H41
|
#define HASHER() H41
|
||||||
/* NOLINTNEXTLINE(build/include) */
|
/* NOLINTNEXTLINE(build/include) */
|
||||||
#include "./backward_references_inc.h"
|
#include "backward_references_inc.h"
|
||||||
#undef HASHER
|
#undef HASHER
|
||||||
|
|
||||||
#define HASHER() H42
|
#define HASHER() H42
|
||||||
/* NOLINTNEXTLINE(build/include) */
|
/* NOLINTNEXTLINE(build/include) */
|
||||||
#include "./backward_references_inc.h"
|
#include "backward_references_inc.h"
|
||||||
#undef HASHER
|
#undef HASHER
|
||||||
|
|
||||||
#define HASHER() H54
|
#define HASHER() H54
|
||||||
/* NOLINTNEXTLINE(build/include) */
|
/* NOLINTNEXTLINE(build/include) */
|
||||||
#include "./backward_references_inc.h"
|
#include "backward_references_inc.h"
|
||||||
#undef HASHER
|
#undef HASHER
|
||||||
|
|
||||||
#define HASHER() H35
|
#define HASHER() H35
|
||||||
/* NOLINTNEXTLINE(build/include) */
|
/* NOLINTNEXTLINE(build/include) */
|
||||||
#include "./backward_references_inc.h"
|
#include "backward_references_inc.h"
|
||||||
#undef HASHER
|
#undef HASHER
|
||||||
|
|
||||||
#define HASHER() H55
|
#define HASHER() H55
|
||||||
/* NOLINTNEXTLINE(build/include) */
|
/* NOLINTNEXTLINE(build/include) */
|
||||||
#include "./backward_references_inc.h"
|
#include "backward_references_inc.h"
|
||||||
#undef HASHER
|
#undef HASHER
|
||||||
|
|
||||||
#define HASHER() H65
|
#define HASHER() H65
|
||||||
/* NOLINTNEXTLINE(build/include) */
|
/* NOLINTNEXTLINE(build/include) */
|
||||||
#include "./backward_references_inc.h"
|
#include "backward_references_inc.h"
|
||||||
#undef HASHER
|
#undef HASHER
|
||||||
|
|
||||||
#undef ENABLE_COMPOUND_DICTIONARY
|
#undef ENABLE_COMPOUND_DICTIONARY
|
||||||
@ -122,31 +122,31 @@ static BROTLI_INLINE size_t ComputeDistanceCode(size_t distance,
|
|||||||
|
|
||||||
#define HASHER() H5
|
#define HASHER() H5
|
||||||
/* NOLINTNEXTLINE(build/include) */
|
/* NOLINTNEXTLINE(build/include) */
|
||||||
#include "./backward_references_inc.h"
|
#include "backward_references_inc.h"
|
||||||
#undef HASHER
|
#undef HASHER
|
||||||
#define HASHER() H6
|
#define HASHER() H6
|
||||||
/* NOLINTNEXTLINE(build/include) */
|
/* NOLINTNEXTLINE(build/include) */
|
||||||
#include "./backward_references_inc.h"
|
#include "backward_references_inc.h"
|
||||||
#undef HASHER
|
#undef HASHER
|
||||||
#define HASHER() H40
|
#define HASHER() H40
|
||||||
/* NOLINTNEXTLINE(build/include) */
|
/* NOLINTNEXTLINE(build/include) */
|
||||||
#include "./backward_references_inc.h"
|
#include "backward_references_inc.h"
|
||||||
#undef HASHER
|
#undef HASHER
|
||||||
#define HASHER() H41
|
#define HASHER() H41
|
||||||
/* NOLINTNEXTLINE(build/include) */
|
/* NOLINTNEXTLINE(build/include) */
|
||||||
#include "./backward_references_inc.h"
|
#include "backward_references_inc.h"
|
||||||
#undef HASHER
|
#undef HASHER
|
||||||
#define HASHER() H42
|
#define HASHER() H42
|
||||||
/* NOLINTNEXTLINE(build/include) */
|
/* NOLINTNEXTLINE(build/include) */
|
||||||
#include "./backward_references_inc.h"
|
#include "backward_references_inc.h"
|
||||||
#undef HASHER
|
#undef HASHER
|
||||||
#define HASHER() H55
|
#define HASHER() H55
|
||||||
/* NOLINTNEXTLINE(build/include) */
|
/* NOLINTNEXTLINE(build/include) */
|
||||||
#include "./backward_references_inc.h"
|
#include "backward_references_inc.h"
|
||||||
#undef HASHER
|
#undef HASHER
|
||||||
#define HASHER() H65
|
#define HASHER() H65
|
||||||
/* NOLINTNEXTLINE(build/include) */
|
/* NOLINTNEXTLINE(build/include) */
|
||||||
#include "./backward_references_inc.h"
|
#include "backward_references_inc.h"
|
||||||
#undef HASHER
|
#undef HASHER
|
||||||
|
|
||||||
#undef ENABLE_COMPOUND_DICTIONARY
|
#undef ENABLE_COMPOUND_DICTIONARY
|
||||||
|
@ -14,9 +14,9 @@
|
|||||||
#include "../common/dictionary.h"
|
#include "../common/dictionary.h"
|
||||||
#include "../common/platform.h"
|
#include "../common/platform.h"
|
||||||
#include <brotli/types.h>
|
#include <brotli/types.h>
|
||||||
#include "./command.h"
|
#include "command.h"
|
||||||
#include "./hash.h"
|
#include "hash.h"
|
||||||
#include "./quality.h"
|
#include "quality.h"
|
||||||
|
|
||||||
#if defined(__cplusplus) || defined(c_plusplus)
|
#if defined(__cplusplus) || defined(c_plusplus)
|
||||||
extern "C" {
|
extern "C" {
|
||||||
|
@ -6,23 +6,23 @@
|
|||||||
|
|
||||||
/* Function to find backward reference copies. */
|
/* Function to find backward reference copies. */
|
||||||
|
|
||||||
#include "./backward_references_hq.h"
|
#include "backward_references_hq.h"
|
||||||
|
|
||||||
#include <string.h> /* memcpy, memset */
|
#include <string.h> /* memcpy, memset */
|
||||||
|
|
||||||
#include "../common/constants.h"
|
#include "../common/constants.h"
|
||||||
#include "../common/platform.h"
|
#include "../common/platform.h"
|
||||||
#include <brotli/types.h>
|
#include <brotli/types.h>
|
||||||
#include "./command.h"
|
#include "command.h"
|
||||||
#include "./compound_dictionary.h"
|
#include "compound_dictionary.h"
|
||||||
#include "./encoder_dict.h"
|
#include "encoder_dict.h"
|
||||||
#include "./fast_log.h"
|
#include "fast_log.h"
|
||||||
#include "./find_match_length.h"
|
#include "find_match_length.h"
|
||||||
#include "./literal_cost.h"
|
#include "literal_cost.h"
|
||||||
#include "./memory.h"
|
#include "memory.h"
|
||||||
#include "./params.h"
|
#include "params.h"
|
||||||
#include "./prefix.h"
|
#include "prefix.h"
|
||||||
#include "./quality.h"
|
#include "quality.h"
|
||||||
|
|
||||||
#if defined(__cplusplus) || defined(c_plusplus)
|
#if defined(__cplusplus) || defined(c_plusplus)
|
||||||
extern "C" {
|
extern "C" {
|
||||||
|
@ -14,10 +14,10 @@
|
|||||||
#include "../common/dictionary.h"
|
#include "../common/dictionary.h"
|
||||||
#include "../common/platform.h"
|
#include "../common/platform.h"
|
||||||
#include <brotli/types.h>
|
#include <brotli/types.h>
|
||||||
#include "./command.h"
|
#include "command.h"
|
||||||
#include "./hash.h"
|
#include "hash.h"
|
||||||
#include "./memory.h"
|
#include "memory.h"
|
||||||
#include "./quality.h"
|
#include "quality.h"
|
||||||
|
|
||||||
#if defined(__cplusplus) || defined(c_plusplus)
|
#if defined(__cplusplus) || defined(c_plusplus)
|
||||||
extern "C" {
|
extern "C" {
|
||||||
|
@ -6,28 +6,28 @@
|
|||||||
|
|
||||||
/* Functions to estimate the bit cost of Huffman trees. */
|
/* Functions to estimate the bit cost of Huffman trees. */
|
||||||
|
|
||||||
#include "./bit_cost.h"
|
#include "bit_cost.h"
|
||||||
|
|
||||||
#include "../common/constants.h"
|
#include "../common/constants.h"
|
||||||
#include "../common/platform.h"
|
#include "../common/platform.h"
|
||||||
#include <brotli/types.h>
|
#include <brotli/types.h>
|
||||||
#include "./fast_log.h"
|
#include "fast_log.h"
|
||||||
#include "./histogram.h"
|
#include "histogram.h"
|
||||||
|
|
||||||
#if defined(__cplusplus) || defined(c_plusplus)
|
#if defined(__cplusplus) || defined(c_plusplus)
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define FN(X) X ## Literal
|
#define FN(X) X ## Literal
|
||||||
#include "./bit_cost_inc.h" /* NOLINT(build/include) */
|
#include "bit_cost_inc.h" /* NOLINT(build/include) */
|
||||||
#undef FN
|
#undef FN
|
||||||
|
|
||||||
#define FN(X) X ## Command
|
#define FN(X) X ## Command
|
||||||
#include "./bit_cost_inc.h" /* NOLINT(build/include) */
|
#include "bit_cost_inc.h" /* NOLINT(build/include) */
|
||||||
#undef FN
|
#undef FN
|
||||||
|
|
||||||
#define FN(X) X ## Distance
|
#define FN(X) X ## Distance
|
||||||
#include "./bit_cost_inc.h" /* NOLINT(build/include) */
|
#include "bit_cost_inc.h" /* NOLINT(build/include) */
|
||||||
#undef FN
|
#undef FN
|
||||||
|
|
||||||
#if defined(__cplusplus) || defined(c_plusplus)
|
#if defined(__cplusplus) || defined(c_plusplus)
|
||||||
|
@ -11,8 +11,8 @@
|
|||||||
|
|
||||||
#include "../common/platform.h"
|
#include "../common/platform.h"
|
||||||
#include <brotli/types.h>
|
#include <brotli/types.h>
|
||||||
#include "./fast_log.h"
|
#include "fast_log.h"
|
||||||
#include "./histogram.h"
|
#include "histogram.h"
|
||||||
|
|
||||||
#if defined(__cplusplus) || defined(c_plusplus)
|
#if defined(__cplusplus) || defined(c_plusplus)
|
||||||
extern "C" {
|
extern "C" {
|
||||||
|
@ -6,18 +6,18 @@
|
|||||||
|
|
||||||
/* Block split point selection utilities. */
|
/* Block split point selection utilities. */
|
||||||
|
|
||||||
#include "./block_splitter.h"
|
#include "block_splitter.h"
|
||||||
|
|
||||||
#include <string.h> /* memcpy, memset */
|
#include <string.h> /* memcpy, memset */
|
||||||
|
|
||||||
#include "../common/platform.h"
|
#include "../common/platform.h"
|
||||||
#include "./bit_cost.h"
|
#include "bit_cost.h"
|
||||||
#include "./cluster.h"
|
#include "cluster.h"
|
||||||
#include "./command.h"
|
#include "command.h"
|
||||||
#include "./fast_log.h"
|
#include "fast_log.h"
|
||||||
#include "./histogram.h"
|
#include "histogram.h"
|
||||||
#include "./memory.h"
|
#include "memory.h"
|
||||||
#include "./quality.h"
|
#include "quality.h"
|
||||||
|
|
||||||
#if defined(__cplusplus) || defined(c_plusplus)
|
#if defined(__cplusplus) || defined(c_plusplus)
|
||||||
extern "C" {
|
extern "C" {
|
||||||
@ -90,19 +90,19 @@ static BROTLI_INLINE double BitCost(size_t count) {
|
|||||||
#define FN(X) X ## Literal
|
#define FN(X) X ## Literal
|
||||||
#define DataType uint8_t
|
#define DataType uint8_t
|
||||||
/* NOLINTNEXTLINE(build/include) */
|
/* NOLINTNEXTLINE(build/include) */
|
||||||
#include "./block_splitter_inc.h"
|
#include "block_splitter_inc.h"
|
||||||
#undef DataType
|
#undef DataType
|
||||||
#undef FN
|
#undef FN
|
||||||
|
|
||||||
#define FN(X) X ## Command
|
#define FN(X) X ## Command
|
||||||
#define DataType uint16_t
|
#define DataType uint16_t
|
||||||
/* NOLINTNEXTLINE(build/include) */
|
/* NOLINTNEXTLINE(build/include) */
|
||||||
#include "./block_splitter_inc.h"
|
#include "block_splitter_inc.h"
|
||||||
#undef FN
|
#undef FN
|
||||||
|
|
||||||
#define FN(X) X ## Distance
|
#define FN(X) X ## Distance
|
||||||
/* NOLINTNEXTLINE(build/include) */
|
/* NOLINTNEXTLINE(build/include) */
|
||||||
#include "./block_splitter_inc.h"
|
#include "block_splitter_inc.h"
|
||||||
#undef DataType
|
#undef DataType
|
||||||
#undef FN
|
#undef FN
|
||||||
|
|
||||||
|
@ -11,9 +11,9 @@
|
|||||||
|
|
||||||
#include "../common/platform.h"
|
#include "../common/platform.h"
|
||||||
#include <brotli/types.h>
|
#include <brotli/types.h>
|
||||||
#include "./command.h"
|
#include "command.h"
|
||||||
#include "./memory.h"
|
#include "memory.h"
|
||||||
#include "./quality.h"
|
#include "quality.h"
|
||||||
|
|
||||||
#if defined(__cplusplus) || defined(c_plusplus)
|
#if defined(__cplusplus) || defined(c_plusplus)
|
||||||
extern "C" {
|
extern "C" {
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
compression algorithms here, just the right ordering of bits to match the
|
compression algorithms here, just the right ordering of bits to match the
|
||||||
specs. */
|
specs. */
|
||||||
|
|
||||||
#include "./brotli_bit_stream.h"
|
#include "brotli_bit_stream.h"
|
||||||
|
|
||||||
#include <string.h> /* memcpy, memset */
|
#include <string.h> /* memcpy, memset */
|
||||||
|
|
||||||
@ -16,12 +16,12 @@
|
|||||||
#include "../common/context.h"
|
#include "../common/context.h"
|
||||||
#include "../common/platform.h"
|
#include "../common/platform.h"
|
||||||
#include <brotli/types.h>
|
#include <brotli/types.h>
|
||||||
#include "./entropy_encode.h"
|
#include "entropy_encode.h"
|
||||||
#include "./entropy_encode_static.h"
|
#include "entropy_encode_static.h"
|
||||||
#include "./fast_log.h"
|
#include "fast_log.h"
|
||||||
#include "./histogram.h"
|
#include "histogram.h"
|
||||||
#include "./memory.h"
|
#include "memory.h"
|
||||||
#include "./write_bits.h"
|
#include "write_bits.h"
|
||||||
|
|
||||||
#if defined(__cplusplus) || defined(c_plusplus)
|
#if defined(__cplusplus) || defined(c_plusplus)
|
||||||
extern "C" {
|
extern "C" {
|
||||||
@ -919,17 +919,17 @@ static void StoreSymbolWithContext(BlockEncoder* self, size_t symbol,
|
|||||||
|
|
||||||
#define FN(X) X ## Literal
|
#define FN(X) X ## Literal
|
||||||
/* NOLINTNEXTLINE(build/include) */
|
/* NOLINTNEXTLINE(build/include) */
|
||||||
#include "./block_encoder_inc.h"
|
#include "block_encoder_inc.h"
|
||||||
#undef FN
|
#undef FN
|
||||||
|
|
||||||
#define FN(X) X ## Command
|
#define FN(X) X ## Command
|
||||||
/* NOLINTNEXTLINE(build/include) */
|
/* NOLINTNEXTLINE(build/include) */
|
||||||
#include "./block_encoder_inc.h"
|
#include "block_encoder_inc.h"
|
||||||
#undef FN
|
#undef FN
|
||||||
|
|
||||||
#define FN(X) X ## Distance
|
#define FN(X) X ## Distance
|
||||||
/* NOLINTNEXTLINE(build/include) */
|
/* NOLINTNEXTLINE(build/include) */
|
||||||
#include "./block_encoder_inc.h"
|
#include "block_encoder_inc.h"
|
||||||
#undef FN
|
#undef FN
|
||||||
|
|
||||||
static void JumpToByteBoundary(size_t* storage_ix, uint8_t* storage) {
|
static void JumpToByteBoundary(size_t* storage_ix, uint8_t* storage) {
|
||||||
|
@ -19,10 +19,10 @@
|
|||||||
#include "../common/context.h"
|
#include "../common/context.h"
|
||||||
#include "../common/platform.h"
|
#include "../common/platform.h"
|
||||||
#include <brotli/types.h>
|
#include <brotli/types.h>
|
||||||
#include "./command.h"
|
#include "command.h"
|
||||||
#include "./entropy_encode.h"
|
#include "entropy_encode.h"
|
||||||
#include "./memory.h"
|
#include "memory.h"
|
||||||
#include "./metablock.h"
|
#include "metablock.h"
|
||||||
|
|
||||||
#if defined(__cplusplus) || defined(c_plusplus)
|
#if defined(__cplusplus) || defined(c_plusplus)
|
||||||
extern "C" {
|
extern "C" {
|
||||||
|
@ -6,14 +6,14 @@
|
|||||||
|
|
||||||
/* Functions for clustering similar histograms together. */
|
/* Functions for clustering similar histograms together. */
|
||||||
|
|
||||||
#include "./cluster.h"
|
#include "cluster.h"
|
||||||
|
|
||||||
#include "../common/platform.h"
|
#include "../common/platform.h"
|
||||||
#include <brotli/types.h>
|
#include <brotli/types.h>
|
||||||
#include "./bit_cost.h" /* BrotliPopulationCost */
|
#include "bit_cost.h" /* BrotliPopulationCost */
|
||||||
#include "./fast_log.h"
|
#include "fast_log.h"
|
||||||
#include "./histogram.h"
|
#include "histogram.h"
|
||||||
#include "./memory.h"
|
#include "memory.h"
|
||||||
|
|
||||||
#if defined(__cplusplus) || defined(c_plusplus)
|
#if defined(__cplusplus) || defined(c_plusplus)
|
||||||
extern "C" {
|
extern "C" {
|
||||||
@ -38,15 +38,15 @@ static BROTLI_INLINE double ClusterCostDiff(size_t size_a, size_t size_b) {
|
|||||||
#define CODE(X) X
|
#define CODE(X) X
|
||||||
|
|
||||||
#define FN(X) X ## Literal
|
#define FN(X) X ## Literal
|
||||||
#include "./cluster_inc.h" /* NOLINT(build/include) */
|
#include "cluster_inc.h" /* NOLINT(build/include) */
|
||||||
#undef FN
|
#undef FN
|
||||||
|
|
||||||
#define FN(X) X ## Command
|
#define FN(X) X ## Command
|
||||||
#include "./cluster_inc.h" /* NOLINT(build/include) */
|
#include "cluster_inc.h" /* NOLINT(build/include) */
|
||||||
#undef FN
|
#undef FN
|
||||||
|
|
||||||
#define FN(X) X ## Distance
|
#define FN(X) X ## Distance
|
||||||
#include "./cluster_inc.h" /* NOLINT(build/include) */
|
#include "cluster_inc.h" /* NOLINT(build/include) */
|
||||||
#undef FN
|
#undef FN
|
||||||
|
|
||||||
#undef CODE
|
#undef CODE
|
||||||
|
@ -11,8 +11,8 @@
|
|||||||
|
|
||||||
#include "../common/platform.h"
|
#include "../common/platform.h"
|
||||||
#include <brotli/types.h>
|
#include <brotli/types.h>
|
||||||
#include "./histogram.h"
|
#include "histogram.h"
|
||||||
#include "./memory.h"
|
#include "memory.h"
|
||||||
|
|
||||||
#if defined(__cplusplus) || defined(c_plusplus)
|
#if defined(__cplusplus) || defined(c_plusplus)
|
||||||
extern "C" {
|
extern "C" {
|
||||||
@ -28,15 +28,15 @@ typedef struct HistogramPair {
|
|||||||
#define CODE(X) /* Declaration */;
|
#define CODE(X) /* Declaration */;
|
||||||
|
|
||||||
#define FN(X) X ## Literal
|
#define FN(X) X ## Literal
|
||||||
#include "./cluster_inc.h" /* NOLINT(build/include) */
|
#include "cluster_inc.h" /* NOLINT(build/include) */
|
||||||
#undef FN
|
#undef FN
|
||||||
|
|
||||||
#define FN(X) X ## Command
|
#define FN(X) X ## Command
|
||||||
#include "./cluster_inc.h" /* NOLINT(build/include) */
|
#include "cluster_inc.h" /* NOLINT(build/include) */
|
||||||
#undef FN
|
#undef FN
|
||||||
|
|
||||||
#define FN(X) X ## Distance
|
#define FN(X) X ## Distance
|
||||||
#include "./cluster_inc.h" /* NOLINT(build/include) */
|
#include "cluster_inc.h" /* NOLINT(build/include) */
|
||||||
#undef FN
|
#undef FN
|
||||||
|
|
||||||
#undef CODE
|
#undef CODE
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
See file LICENSE for detail or copy at https://opensource.org/licenses/MIT
|
See file LICENSE for detail or copy at https://opensource.org/licenses/MIT
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "./command.h"
|
#include "command.h"
|
||||||
|
|
||||||
#include <brotli/types.h>
|
#include <brotli/types.h>
|
||||||
|
|
||||||
|
@ -12,9 +12,9 @@
|
|||||||
#include "../common/constants.h"
|
#include "../common/constants.h"
|
||||||
#include "../common/platform.h"
|
#include "../common/platform.h"
|
||||||
#include <brotli/types.h>
|
#include <brotli/types.h>
|
||||||
#include "./fast_log.h"
|
#include "fast_log.h"
|
||||||
#include "./params.h"
|
#include "params.h"
|
||||||
#include "./prefix.h"
|
#include "prefix.h"
|
||||||
|
|
||||||
#if defined(__cplusplus) || defined(c_plusplus)
|
#if defined(__cplusplus) || defined(c_plusplus)
|
||||||
extern "C" {
|
extern "C" {
|
||||||
|
@ -4,12 +4,12 @@
|
|||||||
See file LICENSE for detail or copy at https://opensource.org/licenses/MIT
|
See file LICENSE for detail or copy at https://opensource.org/licenses/MIT
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "./compound_dictionary.h"
|
#include "compound_dictionary.h"
|
||||||
|
|
||||||
#include "../common/platform.h"
|
#include "../common/platform.h"
|
||||||
#include <brotli/types.h>
|
#include <brotli/types.h>
|
||||||
#include "./memory.h"
|
#include "memory.h"
|
||||||
#include "./quality.h"
|
#include "quality.h"
|
||||||
|
|
||||||
static PreparedDictionary* CreatePreparedDictionaryWithParams(MemoryManager* m,
|
static PreparedDictionary* CreatePreparedDictionaryWithParams(MemoryManager* m,
|
||||||
const uint8_t* source, size_t source_size, uint32_t bucket_bits,
|
const uint8_t* source, size_t source_size, uint32_t bucket_bits,
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
#include "../common/constants.h"
|
#include "../common/constants.h"
|
||||||
#include <brotli/shared_dictionary.h>
|
#include <brotli/shared_dictionary.h>
|
||||||
#include <brotli/types.h>
|
#include <brotli/types.h>
|
||||||
#include "./memory.h"
|
#include "memory.h"
|
||||||
|
|
||||||
static const uint32_t kPreparedDictionaryMagic = 0xDEBCEDE0;
|
static const uint32_t kPreparedDictionaryMagic = 0xDEBCEDE0;
|
||||||
static const uint64_t kPreparedDictionaryHashMul64Long =
|
static const uint64_t kPreparedDictionaryHashMul64Long =
|
||||||
|
@ -12,17 +12,17 @@
|
|||||||
Adapted from the CompressFragment() function in
|
Adapted from the CompressFragment() function in
|
||||||
https://github.com/google/snappy/blob/master/snappy.cc */
|
https://github.com/google/snappy/blob/master/snappy.cc */
|
||||||
|
|
||||||
#include "./compress_fragment.h"
|
#include "compress_fragment.h"
|
||||||
|
|
||||||
#include <string.h> /* memcmp, memcpy, memset */
|
#include <string.h> /* memcmp, memcpy, memset */
|
||||||
|
|
||||||
#include "../common/platform.h"
|
#include "../common/platform.h"
|
||||||
#include <brotli/types.h>
|
#include <brotli/types.h>
|
||||||
#include "./brotli_bit_stream.h"
|
#include "brotli_bit_stream.h"
|
||||||
#include "./entropy_encode.h"
|
#include "entropy_encode.h"
|
||||||
#include "./fast_log.h"
|
#include "fast_log.h"
|
||||||
#include "./find_match_length.h"
|
#include "find_match_length.h"
|
||||||
#include "./write_bits.h"
|
#include "write_bits.h"
|
||||||
|
|
||||||
#if defined(__cplusplus) || defined(c_plusplus)
|
#if defined(__cplusplus) || defined(c_plusplus)
|
||||||
extern "C" {
|
extern "C" {
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
#include "../common/constants.h"
|
#include "../common/constants.h"
|
||||||
#include "../common/platform.h"
|
#include "../common/platform.h"
|
||||||
#include <brotli/types.h>
|
#include <brotli/types.h>
|
||||||
#include "./entropy_encode.h"
|
#include "entropy_encode.h"
|
||||||
|
|
||||||
#if defined(__cplusplus) || defined(c_plusplus)
|
#if defined(__cplusplus) || defined(c_plusplus)
|
||||||
extern "C" {
|
extern "C" {
|
||||||
|
@ -10,19 +10,19 @@
|
|||||||
second pass we emit them into the bit stream using prefix codes built based
|
second pass we emit them into the bit stream using prefix codes built based
|
||||||
on the actual command and literal byte histograms. */
|
on the actual command and literal byte histograms. */
|
||||||
|
|
||||||
#include "./compress_fragment_two_pass.h"
|
#include "compress_fragment_two_pass.h"
|
||||||
|
|
||||||
#include <string.h> /* memcmp, memcpy, memset */
|
#include <string.h> /* memcmp, memcpy, memset */
|
||||||
|
|
||||||
#include "../common/constants.h"
|
#include "../common/constants.h"
|
||||||
#include "../common/platform.h"
|
#include "../common/platform.h"
|
||||||
#include <brotli/types.h>
|
#include <brotli/types.h>
|
||||||
#include "./bit_cost.h"
|
#include "bit_cost.h"
|
||||||
#include "./brotli_bit_stream.h"
|
#include "brotli_bit_stream.h"
|
||||||
#include "./entropy_encode.h"
|
#include "entropy_encode.h"
|
||||||
#include "./fast_log.h"
|
#include "fast_log.h"
|
||||||
#include "./find_match_length.h"
|
#include "find_match_length.h"
|
||||||
#include "./write_bits.h"
|
#include "write_bits.h"
|
||||||
|
|
||||||
#if defined(__cplusplus) || defined(c_plusplus)
|
#if defined(__cplusplus) || defined(c_plusplus)
|
||||||
extern "C" {
|
extern "C" {
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
#include "../common/constants.h"
|
#include "../common/constants.h"
|
||||||
#include "../common/platform.h"
|
#include "../common/platform.h"
|
||||||
#include <brotli/types.h>
|
#include <brotli/types.h>
|
||||||
#include "./entropy_encode.h"
|
#include "entropy_encode.h"
|
||||||
|
|
||||||
#if defined(__cplusplus) || defined(c_plusplus)
|
#if defined(__cplusplus) || defined(c_plusplus)
|
||||||
extern "C" {
|
extern "C" {
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
/* Hash table on the 4-byte prefixes of static dictionary words. */
|
/* Hash table on the 4-byte prefixes of static dictionary words. */
|
||||||
|
|
||||||
#include "../common/platform.h"
|
#include "../common/platform.h"
|
||||||
#include "./dictionary_hash.h"
|
#include "dictionary_hash.h"
|
||||||
|
|
||||||
#if defined(__cplusplus) || defined(c_plusplus)
|
#if defined(__cplusplus) || defined(c_plusplus)
|
||||||
extern "C" {
|
extern "C" {
|
||||||
|
@ -15,25 +15,25 @@
|
|||||||
#include "../common/context.h"
|
#include "../common/context.h"
|
||||||
#include "../common/platform.h"
|
#include "../common/platform.h"
|
||||||
#include "../common/version.h"
|
#include "../common/version.h"
|
||||||
#include "./backward_references.h"
|
#include "backward_references.h"
|
||||||
#include "./backward_references_hq.h"
|
#include "backward_references_hq.h"
|
||||||
#include "./bit_cost.h"
|
#include "bit_cost.h"
|
||||||
#include "./brotli_bit_stream.h"
|
#include "brotli_bit_stream.h"
|
||||||
#include "./compress_fragment.h"
|
#include "compress_fragment.h"
|
||||||
#include "./compress_fragment_two_pass.h"
|
#include "compress_fragment_two_pass.h"
|
||||||
#include "./dictionary_hash.h"
|
#include "dictionary_hash.h"
|
||||||
#include "./encoder_dict.h"
|
#include "encoder_dict.h"
|
||||||
#include "./entropy_encode.h"
|
#include "entropy_encode.h"
|
||||||
#include "./fast_log.h"
|
#include "fast_log.h"
|
||||||
#include "./hash.h"
|
#include "hash.h"
|
||||||
#include "./histogram.h"
|
#include "histogram.h"
|
||||||
#include "./memory.h"
|
#include "memory.h"
|
||||||
#include "./metablock.h"
|
#include "metablock.h"
|
||||||
#include "./prefix.h"
|
#include "prefix.h"
|
||||||
#include "./quality.h"
|
#include "quality.h"
|
||||||
#include "./ringbuffer.h"
|
#include "ringbuffer.h"
|
||||||
#include "./utf8_util.h"
|
#include "utf8_util.h"
|
||||||
#include "./write_bits.h"
|
#include "write_bits.h"
|
||||||
|
|
||||||
#if defined(__cplusplus) || defined(c_plusplus)
|
#if defined(__cplusplus) || defined(c_plusplus)
|
||||||
extern "C" {
|
extern "C" {
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
See file LICENSE for detail or copy at https://opensource.org/licenses/MIT
|
See file LICENSE for detail or copy at https://opensource.org/licenses/MIT
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "./encoder_dict.h"
|
#include "encoder_dict.h"
|
||||||
|
|
||||||
#include <stdlib.h> /* malloc, free */
|
#include <stdlib.h> /* malloc, free */
|
||||||
|
|
||||||
@ -12,11 +12,11 @@
|
|||||||
#include "../common/platform.h"
|
#include "../common/platform.h"
|
||||||
#include "../common/shared_dictionary_internal.h"
|
#include "../common/shared_dictionary_internal.h"
|
||||||
#include "../common/transform.h"
|
#include "../common/transform.h"
|
||||||
#include "./compound_dictionary.h"
|
#include "compound_dictionary.h"
|
||||||
#include "./dictionary_hash.h"
|
#include "dictionary_hash.h"
|
||||||
#include "./memory.h"
|
#include "memory.h"
|
||||||
#include "./quality.h"
|
#include "quality.h"
|
||||||
#include "./hash.h"
|
#include "hash.h"
|
||||||
|
|
||||||
#if defined(__cplusplus) || defined(c_plusplus)
|
#if defined(__cplusplus) || defined(c_plusplus)
|
||||||
extern "C" {
|
extern "C" {
|
||||||
|
@ -11,9 +11,9 @@
|
|||||||
#include "../common/platform.h"
|
#include "../common/platform.h"
|
||||||
#include <brotli/shared_dictionary.h>
|
#include <brotli/shared_dictionary.h>
|
||||||
#include <brotli/types.h>
|
#include <brotli/types.h>
|
||||||
#include "./compound_dictionary.h"
|
#include "compound_dictionary.h"
|
||||||
#include "./memory.h"
|
#include "memory.h"
|
||||||
#include "./static_dict_lut.h"
|
#include "static_dict_lut.h"
|
||||||
|
|
||||||
#if defined(__cplusplus) || defined(c_plusplus)
|
#if defined(__cplusplus) || defined(c_plusplus)
|
||||||
extern "C" {
|
extern "C" {
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
|
|
||||||
/* Entropy encoding (Huffman) utilities. */
|
/* Entropy encoding (Huffman) utilities. */
|
||||||
|
|
||||||
#include "./entropy_encode.h"
|
#include "entropy_encode.h"
|
||||||
|
|
||||||
#include <string.h> /* memset */
|
#include <string.h> /* memset */
|
||||||
|
|
||||||
|
@ -12,7 +12,7 @@
|
|||||||
#include "../common/constants.h"
|
#include "../common/constants.h"
|
||||||
#include "../common/platform.h"
|
#include "../common/platform.h"
|
||||||
#include <brotli/types.h>
|
#include <brotli/types.h>
|
||||||
#include "./write_bits.h"
|
#include "write_bits.h"
|
||||||
|
|
||||||
#if defined(__cplusplus) || defined(c_plusplus)
|
#if defined(__cplusplus) || defined(c_plusplus)
|
||||||
extern "C" {
|
extern "C" {
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
See file LICENSE for detail or copy at https://opensource.org/licenses/MIT
|
See file LICENSE for detail or copy at https://opensource.org/licenses/MIT
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "./fast_log.h"
|
#include "fast_log.h"
|
||||||
|
|
||||||
#if defined(__cplusplus) || defined(c_plusplus)
|
#if defined(__cplusplus) || defined(c_plusplus)
|
||||||
extern "C" {
|
extern "C" {
|
||||||
|
42
c/enc/hash.h
42
c/enc/hash.h
@ -17,12 +17,12 @@
|
|||||||
#include "../common/dictionary.h"
|
#include "../common/dictionary.h"
|
||||||
#include "../common/platform.h"
|
#include "../common/platform.h"
|
||||||
#include <brotli/types.h>
|
#include <brotli/types.h>
|
||||||
#include "./encoder_dict.h"
|
#include "encoder_dict.h"
|
||||||
#include "./fast_log.h"
|
#include "fast_log.h"
|
||||||
#include "./find_match_length.h"
|
#include "find_match_length.h"
|
||||||
#include "./memory.h"
|
#include "memory.h"
|
||||||
#include "./quality.h"
|
#include "quality.h"
|
||||||
#include "./static_dict.h"
|
#include "static_dict.h"
|
||||||
|
|
||||||
#if defined(__cplusplus) || defined(c_plusplus)
|
#if defined(__cplusplus) || defined(c_plusplus)
|
||||||
extern "C" {
|
extern "C" {
|
||||||
@ -246,7 +246,7 @@ static BROTLI_INLINE size_t BackwardMatchLengthCode(const BackwardMatch* self) {
|
|||||||
#define BUCKET_BITS 17
|
#define BUCKET_BITS 17
|
||||||
#define MAX_TREE_SEARCH_DEPTH 64
|
#define MAX_TREE_SEARCH_DEPTH 64
|
||||||
#define MAX_TREE_COMP_LENGTH 128
|
#define MAX_TREE_COMP_LENGTH 128
|
||||||
#include "./hash_to_binary_tree_inc.h" /* NOLINT(build/include) */
|
#include "hash_to_binary_tree_inc.h" /* NOLINT(build/include) */
|
||||||
#undef MAX_TREE_SEARCH_DEPTH
|
#undef MAX_TREE_SEARCH_DEPTH
|
||||||
#undef MAX_TREE_COMP_LENGTH
|
#undef MAX_TREE_COMP_LENGTH
|
||||||
#undef BUCKET_BITS
|
#undef BUCKET_BITS
|
||||||
@ -263,7 +263,7 @@ static BROTLI_INLINE size_t BackwardMatchLengthCode(const BackwardMatch* self) {
|
|||||||
#define BUCKET_SWEEP_BITS 0
|
#define BUCKET_SWEEP_BITS 0
|
||||||
#define HASH_LEN 5
|
#define HASH_LEN 5
|
||||||
#define USE_DICTIONARY 1
|
#define USE_DICTIONARY 1
|
||||||
#include "./hash_longest_match_quickly_inc.h" /* NOLINT(build/include) */
|
#include "hash_longest_match_quickly_inc.h" /* NOLINT(build/include) */
|
||||||
#undef BUCKET_SWEEP_BITS
|
#undef BUCKET_SWEEP_BITS
|
||||||
#undef USE_DICTIONARY
|
#undef USE_DICTIONARY
|
||||||
#undef HASHER
|
#undef HASHER
|
||||||
@ -271,7 +271,7 @@ static BROTLI_INLINE size_t BackwardMatchLengthCode(const BackwardMatch* self) {
|
|||||||
#define HASHER() H3
|
#define HASHER() H3
|
||||||
#define BUCKET_SWEEP_BITS 1
|
#define BUCKET_SWEEP_BITS 1
|
||||||
#define USE_DICTIONARY 0
|
#define USE_DICTIONARY 0
|
||||||
#include "./hash_longest_match_quickly_inc.h" /* NOLINT(build/include) */
|
#include "hash_longest_match_quickly_inc.h" /* NOLINT(build/include) */
|
||||||
#undef USE_DICTIONARY
|
#undef USE_DICTIONARY
|
||||||
#undef BUCKET_SWEEP_BITS
|
#undef BUCKET_SWEEP_BITS
|
||||||
#undef BUCKET_BITS
|
#undef BUCKET_BITS
|
||||||
@ -281,7 +281,7 @@ static BROTLI_INLINE size_t BackwardMatchLengthCode(const BackwardMatch* self) {
|
|||||||
#define BUCKET_BITS 17
|
#define BUCKET_BITS 17
|
||||||
#define BUCKET_SWEEP_BITS 2
|
#define BUCKET_SWEEP_BITS 2
|
||||||
#define USE_DICTIONARY 1
|
#define USE_DICTIONARY 1
|
||||||
#include "./hash_longest_match_quickly_inc.h" /* NOLINT(build/include) */
|
#include "hash_longest_match_quickly_inc.h" /* NOLINT(build/include) */
|
||||||
#undef USE_DICTIONARY
|
#undef USE_DICTIONARY
|
||||||
#undef HASH_LEN
|
#undef HASH_LEN
|
||||||
#undef BUCKET_SWEEP_BITS
|
#undef BUCKET_SWEEP_BITS
|
||||||
@ -289,11 +289,11 @@ static BROTLI_INLINE size_t BackwardMatchLengthCode(const BackwardMatch* self) {
|
|||||||
#undef HASHER
|
#undef HASHER
|
||||||
|
|
||||||
#define HASHER() H5
|
#define HASHER() H5
|
||||||
#include "./hash_longest_match_inc.h" /* NOLINT(build/include) */
|
#include "hash_longest_match_inc.h" /* NOLINT(build/include) */
|
||||||
#undef HASHER
|
#undef HASHER
|
||||||
|
|
||||||
#define HASHER() H6
|
#define HASHER() H6
|
||||||
#include "./hash_longest_match64_inc.h" /* NOLINT(build/include) */
|
#include "hash_longest_match64_inc.h" /* NOLINT(build/include) */
|
||||||
#undef HASHER
|
#undef HASHER
|
||||||
|
|
||||||
#define BUCKET_BITS 15
|
#define BUCKET_BITS 15
|
||||||
@ -302,13 +302,13 @@ static BROTLI_INLINE size_t BackwardMatchLengthCode(const BackwardMatch* self) {
|
|||||||
#define NUM_BANKS 1
|
#define NUM_BANKS 1
|
||||||
#define BANK_BITS 16
|
#define BANK_BITS 16
|
||||||
#define HASHER() H40
|
#define HASHER() H40
|
||||||
#include "./hash_forgetful_chain_inc.h" /* NOLINT(build/include) */
|
#include "hash_forgetful_chain_inc.h" /* NOLINT(build/include) */
|
||||||
#undef HASHER
|
#undef HASHER
|
||||||
#undef NUM_LAST_DISTANCES_TO_CHECK
|
#undef NUM_LAST_DISTANCES_TO_CHECK
|
||||||
|
|
||||||
#define NUM_LAST_DISTANCES_TO_CHECK 10
|
#define NUM_LAST_DISTANCES_TO_CHECK 10
|
||||||
#define HASHER() H41
|
#define HASHER() H41
|
||||||
#include "./hash_forgetful_chain_inc.h" /* NOLINT(build/include) */
|
#include "hash_forgetful_chain_inc.h" /* NOLINT(build/include) */
|
||||||
#undef HASHER
|
#undef HASHER
|
||||||
#undef NUM_LAST_DISTANCES_TO_CHECK
|
#undef NUM_LAST_DISTANCES_TO_CHECK
|
||||||
#undef NUM_BANKS
|
#undef NUM_BANKS
|
||||||
@ -318,7 +318,7 @@ static BROTLI_INLINE size_t BackwardMatchLengthCode(const BackwardMatch* self) {
|
|||||||
#define NUM_BANKS 512
|
#define NUM_BANKS 512
|
||||||
#define BANK_BITS 9
|
#define BANK_BITS 9
|
||||||
#define HASHER() H42
|
#define HASHER() H42
|
||||||
#include "./hash_forgetful_chain_inc.h" /* NOLINT(build/include) */
|
#include "hash_forgetful_chain_inc.h" /* NOLINT(build/include) */
|
||||||
#undef HASHER
|
#undef HASHER
|
||||||
#undef NUM_LAST_DISTANCES_TO_CHECK
|
#undef NUM_LAST_DISTANCES_TO_CHECK
|
||||||
#undef NUM_BANKS
|
#undef NUM_BANKS
|
||||||
@ -331,7 +331,7 @@ static BROTLI_INLINE size_t BackwardMatchLengthCode(const BackwardMatch* self) {
|
|||||||
#define BUCKET_SWEEP_BITS 2
|
#define BUCKET_SWEEP_BITS 2
|
||||||
#define HASH_LEN 7
|
#define HASH_LEN 7
|
||||||
#define USE_DICTIONARY 0
|
#define USE_DICTIONARY 0
|
||||||
#include "./hash_longest_match_quickly_inc.h" /* NOLINT(build/include) */
|
#include "hash_longest_match_quickly_inc.h" /* NOLINT(build/include) */
|
||||||
#undef USE_DICTIONARY
|
#undef USE_DICTIONARY
|
||||||
#undef HASH_LEN
|
#undef HASH_LEN
|
||||||
#undef BUCKET_SWEEP_BITS
|
#undef BUCKET_SWEEP_BITS
|
||||||
@ -345,14 +345,14 @@ static BROTLI_INLINE size_t BackwardMatchLengthCode(const BackwardMatch* self) {
|
|||||||
#define JUMP 4
|
#define JUMP 4
|
||||||
#define NUMBUCKETS 16777216
|
#define NUMBUCKETS 16777216
|
||||||
#define MASK ((NUMBUCKETS * 64) - 1)
|
#define MASK ((NUMBUCKETS * 64) - 1)
|
||||||
#include "./hash_rolling_inc.h" /* NOLINT(build/include) */
|
#include "hash_rolling_inc.h" /* NOLINT(build/include) */
|
||||||
#undef JUMP
|
#undef JUMP
|
||||||
#undef HASHER
|
#undef HASHER
|
||||||
|
|
||||||
|
|
||||||
#define HASHER() HROLLING
|
#define HASHER() HROLLING
|
||||||
#define JUMP 1
|
#define JUMP 1
|
||||||
#include "./hash_rolling_inc.h" /* NOLINT(build/include) */
|
#include "hash_rolling_inc.h" /* NOLINT(build/include) */
|
||||||
#undef MASK
|
#undef MASK
|
||||||
#undef NUMBUCKETS
|
#undef NUMBUCKETS
|
||||||
#undef JUMP
|
#undef JUMP
|
||||||
@ -362,7 +362,7 @@ static BROTLI_INLINE size_t BackwardMatchLengthCode(const BackwardMatch* self) {
|
|||||||
#define HASHER() H35
|
#define HASHER() H35
|
||||||
#define HASHER_A H3
|
#define HASHER_A H3
|
||||||
#define HASHER_B HROLLING_FAST
|
#define HASHER_B HROLLING_FAST
|
||||||
#include "./hash_composite_inc.h" /* NOLINT(build/include) */
|
#include "hash_composite_inc.h" /* NOLINT(build/include) */
|
||||||
#undef HASHER_A
|
#undef HASHER_A
|
||||||
#undef HASHER_B
|
#undef HASHER_B
|
||||||
#undef HASHER
|
#undef HASHER
|
||||||
@ -370,7 +370,7 @@ static BROTLI_INLINE size_t BackwardMatchLengthCode(const BackwardMatch* self) {
|
|||||||
#define HASHER() H55
|
#define HASHER() H55
|
||||||
#define HASHER_A H54
|
#define HASHER_A H54
|
||||||
#define HASHER_B HROLLING_FAST
|
#define HASHER_B HROLLING_FAST
|
||||||
#include "./hash_composite_inc.h" /* NOLINT(build/include) */
|
#include "hash_composite_inc.h" /* NOLINT(build/include) */
|
||||||
#undef HASHER_A
|
#undef HASHER_A
|
||||||
#undef HASHER_B
|
#undef HASHER_B
|
||||||
#undef HASHER
|
#undef HASHER
|
||||||
@ -378,7 +378,7 @@ static BROTLI_INLINE size_t BackwardMatchLengthCode(const BackwardMatch* self) {
|
|||||||
#define HASHER() H65
|
#define HASHER() H65
|
||||||
#define HASHER_A H6
|
#define HASHER_A H6
|
||||||
#define HASHER_B HROLLING
|
#define HASHER_B HROLLING
|
||||||
#include "./hash_composite_inc.h" /* NOLINT(build/include) */
|
#include "hash_composite_inc.h" /* NOLINT(build/include) */
|
||||||
#undef HASHER_A
|
#undef HASHER_A
|
||||||
#undef HASHER_B
|
#undef HASHER_B
|
||||||
#undef HASHER
|
#undef HASHER
|
||||||
|
@ -6,11 +6,11 @@
|
|||||||
|
|
||||||
/* Build per-context histograms of literals, commands and distance codes. */
|
/* Build per-context histograms of literals, commands and distance codes. */
|
||||||
|
|
||||||
#include "./histogram.h"
|
#include "histogram.h"
|
||||||
|
|
||||||
#include "../common/context.h"
|
#include "../common/context.h"
|
||||||
#include "./block_splitter.h"
|
#include "block_splitter.h"
|
||||||
#include "./command.h"
|
#include "command.h"
|
||||||
|
|
||||||
#if defined(__cplusplus) || defined(c_plusplus)
|
#if defined(__cplusplus) || defined(c_plusplus)
|
||||||
extern "C" {
|
extern "C" {
|
||||||
|
@ -15,8 +15,8 @@
|
|||||||
#include "../common/context.h"
|
#include "../common/context.h"
|
||||||
#include "../common/platform.h"
|
#include "../common/platform.h"
|
||||||
#include <brotli/types.h>
|
#include <brotli/types.h>
|
||||||
#include "./block_splitter.h"
|
#include "block_splitter.h"
|
||||||
#include "./command.h"
|
#include "command.h"
|
||||||
|
|
||||||
#if defined(__cplusplus) || defined(c_plusplus)
|
#if defined(__cplusplus) || defined(c_plusplus)
|
||||||
extern "C" {
|
extern "C" {
|
||||||
@ -28,7 +28,7 @@ extern "C" {
|
|||||||
#define FN(X) X ## Literal
|
#define FN(X) X ## Literal
|
||||||
#define DATA_SIZE BROTLI_NUM_LITERAL_SYMBOLS
|
#define DATA_SIZE BROTLI_NUM_LITERAL_SYMBOLS
|
||||||
#define DataType uint8_t
|
#define DataType uint8_t
|
||||||
#include "./histogram_inc.h" /* NOLINT(build/include) */
|
#include "histogram_inc.h" /* NOLINT(build/include) */
|
||||||
#undef DataType
|
#undef DataType
|
||||||
#undef DATA_SIZE
|
#undef DATA_SIZE
|
||||||
#undef FN
|
#undef FN
|
||||||
@ -36,13 +36,13 @@ extern "C" {
|
|||||||
#define FN(X) X ## Command
|
#define FN(X) X ## Command
|
||||||
#define DataType uint16_t
|
#define DataType uint16_t
|
||||||
#define DATA_SIZE BROTLI_NUM_COMMAND_SYMBOLS
|
#define DATA_SIZE BROTLI_NUM_COMMAND_SYMBOLS
|
||||||
#include "./histogram_inc.h" /* NOLINT(build/include) */
|
#include "histogram_inc.h" /* NOLINT(build/include) */
|
||||||
#undef DATA_SIZE
|
#undef DATA_SIZE
|
||||||
#undef FN
|
#undef FN
|
||||||
|
|
||||||
#define FN(X) X ## Distance
|
#define FN(X) X ## Distance
|
||||||
#define DATA_SIZE BROTLI_NUM_HISTOGRAM_DISTANCE_SYMBOLS
|
#define DATA_SIZE BROTLI_NUM_HISTOGRAM_DISTANCE_SYMBOLS
|
||||||
#include "./histogram_inc.h" /* NOLINT(build/include) */
|
#include "histogram_inc.h" /* NOLINT(build/include) */
|
||||||
#undef DataType
|
#undef DataType
|
||||||
#undef DATA_SIZE
|
#undef DATA_SIZE
|
||||||
#undef FN
|
#undef FN
|
||||||
|
@ -7,14 +7,14 @@
|
|||||||
/* Literal cost model to allow backward reference replacement to be efficient.
|
/* Literal cost model to allow backward reference replacement to be efficient.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "./literal_cost.h"
|
#include "literal_cost.h"
|
||||||
|
|
||||||
#include <string.h> /* memset */
|
#include <string.h> /* memset */
|
||||||
|
|
||||||
#include "../common/platform.h"
|
#include "../common/platform.h"
|
||||||
#include <brotli/types.h>
|
#include <brotli/types.h>
|
||||||
#include "./fast_log.h"
|
#include "fast_log.h"
|
||||||
#include "./utf8_util.h"
|
#include "utf8_util.h"
|
||||||
|
|
||||||
#if defined(__cplusplus) || defined(c_plusplus)
|
#if defined(__cplusplus) || defined(c_plusplus)
|
||||||
extern "C" {
|
extern "C" {
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
/* Algorithms for distributing the literals and commands of a metablock between
|
/* Algorithms for distributing the literals and commands of a metablock between
|
||||||
block types and contexts. */
|
block types and contexts. */
|
||||||
|
|
||||||
#include "./memory.h"
|
#include "memory.h"
|
||||||
|
|
||||||
#include <stdlib.h> /* exit, free, malloc */
|
#include <stdlib.h> /* exit, free, malloc */
|
||||||
#include <string.h> /* memcpy */
|
#include <string.h> /* memcpy */
|
||||||
|
@ -7,19 +7,19 @@
|
|||||||
/* Algorithms for distributing the literals and commands of a metablock between
|
/* Algorithms for distributing the literals and commands of a metablock between
|
||||||
block types and contexts. */
|
block types and contexts. */
|
||||||
|
|
||||||
#include "./metablock.h"
|
#include "metablock.h"
|
||||||
|
|
||||||
#include "../common/constants.h"
|
#include "../common/constants.h"
|
||||||
#include "../common/context.h"
|
#include "../common/context.h"
|
||||||
#include "../common/platform.h"
|
#include "../common/platform.h"
|
||||||
#include <brotli/types.h>
|
#include <brotli/types.h>
|
||||||
#include "./bit_cost.h"
|
#include "bit_cost.h"
|
||||||
#include "./block_splitter.h"
|
#include "block_splitter.h"
|
||||||
#include "./cluster.h"
|
#include "cluster.h"
|
||||||
#include "./entropy_encode.h"
|
#include "entropy_encode.h"
|
||||||
#include "./histogram.h"
|
#include "histogram.h"
|
||||||
#include "./memory.h"
|
#include "memory.h"
|
||||||
#include "./quality.h"
|
#include "quality.h"
|
||||||
|
|
||||||
#if defined(__cplusplus) || defined(c_plusplus)
|
#if defined(__cplusplus) || defined(c_plusplus)
|
||||||
extern "C" {
|
extern "C" {
|
||||||
@ -286,15 +286,15 @@ void BrotliBuildMetaBlock(MemoryManager* m,
|
|||||||
}
|
}
|
||||||
|
|
||||||
#define FN(X) X ## Literal
|
#define FN(X) X ## Literal
|
||||||
#include "./metablock_inc.h" /* NOLINT(build/include) */
|
#include "metablock_inc.h" /* NOLINT(build/include) */
|
||||||
#undef FN
|
#undef FN
|
||||||
|
|
||||||
#define FN(X) X ## Command
|
#define FN(X) X ## Command
|
||||||
#include "./metablock_inc.h" /* NOLINT(build/include) */
|
#include "metablock_inc.h" /* NOLINT(build/include) */
|
||||||
#undef FN
|
#undef FN
|
||||||
|
|
||||||
#define FN(X) X ## Distance
|
#define FN(X) X ## Distance
|
||||||
#include "./metablock_inc.h" /* NOLINT(build/include) */
|
#include "metablock_inc.h" /* NOLINT(build/include) */
|
||||||
#undef FN
|
#undef FN
|
||||||
|
|
||||||
#define BROTLI_MAX_STATIC_CONTEXTS 13
|
#define BROTLI_MAX_STATIC_CONTEXTS 13
|
||||||
|
@ -13,11 +13,11 @@
|
|||||||
#include "../common/context.h"
|
#include "../common/context.h"
|
||||||
#include "../common/platform.h"
|
#include "../common/platform.h"
|
||||||
#include <brotli/types.h>
|
#include <brotli/types.h>
|
||||||
#include "./block_splitter.h"
|
#include "block_splitter.h"
|
||||||
#include "./command.h"
|
#include "command.h"
|
||||||
#include "./histogram.h"
|
#include "histogram.h"
|
||||||
#include "./memory.h"
|
#include "memory.h"
|
||||||
#include "./quality.h"
|
#include "quality.h"
|
||||||
|
|
||||||
#if defined(__cplusplus) || defined(c_plusplus)
|
#if defined(__cplusplus) || defined(c_plusplus)
|
||||||
extern "C" {
|
extern "C" {
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
#define BROTLI_ENC_PARAMS_H_
|
#define BROTLI_ENC_PARAMS_H_
|
||||||
|
|
||||||
#include <brotli/encode.h>
|
#include <brotli/encode.h>
|
||||||
#include "./encoder_dict.h"
|
#include "encoder_dict.h"
|
||||||
|
|
||||||
typedef struct BrotliHasherParams {
|
typedef struct BrotliHasherParams {
|
||||||
int type;
|
int type;
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
#include "../common/constants.h"
|
#include "../common/constants.h"
|
||||||
#include "../common/platform.h"
|
#include "../common/platform.h"
|
||||||
#include <brotli/types.h>
|
#include <brotli/types.h>
|
||||||
#include "./fast_log.h"
|
#include "fast_log.h"
|
||||||
|
|
||||||
#if defined(__cplusplus) || defined(c_plusplus)
|
#if defined(__cplusplus) || defined(c_plusplus)
|
||||||
extern "C" {
|
extern "C" {
|
||||||
|
@ -12,7 +12,7 @@
|
|||||||
|
|
||||||
#include "../common/platform.h"
|
#include "../common/platform.h"
|
||||||
#include <brotli/encode.h>
|
#include <brotli/encode.h>
|
||||||
#include "./params.h"
|
#include "params.h"
|
||||||
|
|
||||||
#define FAST_ONE_PASS_COMPRESSION_QUALITY 0
|
#define FAST_ONE_PASS_COMPRESSION_QUALITY 0
|
||||||
#define FAST_TWO_PASS_COMPRESSION_QUALITY 1
|
#define FAST_TWO_PASS_COMPRESSION_QUALITY 1
|
||||||
|
@ -13,8 +13,8 @@
|
|||||||
|
|
||||||
#include "../common/platform.h"
|
#include "../common/platform.h"
|
||||||
#include <brotli/types.h>
|
#include <brotli/types.h>
|
||||||
#include "./memory.h"
|
#include "memory.h"
|
||||||
#include "./quality.h"
|
#include "quality.h"
|
||||||
|
|
||||||
#if defined(__cplusplus) || defined(c_plusplus)
|
#if defined(__cplusplus) || defined(c_plusplus)
|
||||||
extern "C" {
|
extern "C" {
|
||||||
|
@ -4,13 +4,13 @@
|
|||||||
See file LICENSE for detail or copy at https://opensource.org/licenses/MIT
|
See file LICENSE for detail or copy at https://opensource.org/licenses/MIT
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "./static_dict.h"
|
#include "static_dict.h"
|
||||||
|
|
||||||
#include "../common/dictionary.h"
|
#include "../common/dictionary.h"
|
||||||
#include "../common/platform.h"
|
#include "../common/platform.h"
|
||||||
#include "../common/transform.h"
|
#include "../common/transform.h"
|
||||||
#include "./encoder_dict.h"
|
#include "encoder_dict.h"
|
||||||
#include "./find_match_length.h"
|
#include "find_match_length.h"
|
||||||
|
|
||||||
#if defined(__cplusplus) || defined(c_plusplus)
|
#if defined(__cplusplus) || defined(c_plusplus)
|
||||||
extern "C" {
|
extern "C" {
|
||||||
|
@ -12,7 +12,7 @@
|
|||||||
#include "../common/dictionary.h"
|
#include "../common/dictionary.h"
|
||||||
#include "../common/platform.h"
|
#include "../common/platform.h"
|
||||||
#include <brotli/types.h>
|
#include <brotli/types.h>
|
||||||
#include "./encoder_dict.h"
|
#include "encoder_dict.h"
|
||||||
|
|
||||||
#if defined(__cplusplus) || defined(c_plusplus)
|
#if defined(__cplusplus) || defined(c_plusplus)
|
||||||
extern "C" {
|
extern "C" {
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
|
|
||||||
/* Heuristics for deciding about the UTF8-ness of strings. */
|
/* Heuristics for deciding about the UTF8-ness of strings. */
|
||||||
|
|
||||||
#include "./utf8_util.h"
|
#include "utf8_util.h"
|
||||||
|
|
||||||
#include <brotli/types.h>
|
#include <brotli/types.h>
|
||||||
|
|
||||||
|
@ -80,7 +80,7 @@ OPTIONS
|
|||||||
* `-v`, `--verbose`:
|
* `-v`, `--verbose`:
|
||||||
increase output verbosity
|
increase output verbosity
|
||||||
* `-w NUM`, `--lgwin=NUM`:
|
* `-w NUM`, `--lgwin=NUM`:
|
||||||
set LZ77 window size (0, 10-24) (default: 22); window size is
|
set LZ77 window size (0, 10-24) (default: 24); window size is
|
||||||
`(2**NUM - 16)`; 0 lets compressor decide over the optimal value; bigger
|
`(2**NUM - 16)`; 0 lets compressor decide over the optimal value; bigger
|
||||||
windows size improve density; decoder might require up to window size
|
windows size improve density; decoder might require up to window size
|
||||||
memory to operate
|
memory to operate
|
||||||
|
@ -103,7 +103,7 @@ Conflicting or duplicate \fIoptions\fR are not allowed\.
|
|||||||
increase output verbosity
|
increase output verbosity
|
||||||
.IP \(bu 2
|
.IP \(bu 2
|
||||||
\fB\-w NUM\fP, \fB\-\-lgwin=NUM\fP:
|
\fB\-w NUM\fP, \fB\-\-lgwin=NUM\fP:
|
||||||
set LZ77 window size (0, 10\-24) (default: 22); window size is
|
set LZ77 window size (0, 10\-24) (default: 24); window size is
|
||||||
\fB(2**NUM \- 16)\fP; 0 lets compressor decide over the optimal value; bigger
|
\fB(2**NUM \- 16)\fP; 0 lets compressor decide over the optimal value; bigger
|
||||||
windows size improve density; decoder might require up to window size
|
windows size improve density; decoder might require up to window size
|
||||||
memory to operate
|
memory to operate
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
See file LICENSE for detail or copy at https://opensource.org/licenses/MIT
|
See file LICENSE for detail or copy at https://opensource.org/licenses/MIT
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "./decoder_jni.h"
|
#include "decoder_jni.h"
|
||||||
|
|
||||||
#include <new>
|
#include <new>
|
||||||
|
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
|
|
||||||
#include <jni.h>
|
#include <jni.h>
|
||||||
|
|
||||||
#include "./decoder_jni.h"
|
#include "decoder_jni.h"
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#include "./deorummolae.h"
|
#include "deorummolae.h"
|
||||||
|
|
||||||
#include <array>
|
#include <array>
|
||||||
#include <cstdio>
|
#include <cstdio>
|
||||||
|
@ -8,9 +8,9 @@
|
|||||||
#endif
|
#endif
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
#include "./deorummolae.h"
|
#include "deorummolae.h"
|
||||||
#include "./durchschlag.h"
|
#include "durchschlag.h"
|
||||||
#include "./sieve.h"
|
#include "sieve.h"
|
||||||
|
|
||||||
/* This isn't a definitive list of "--foo" arguments, only those that take an
|
/* This isn't a definitive list of "--foo" arguments, only those that take an
|
||||||
* additional "=#" integer parameter, like "--foo=20" or "--foo=32K".
|
* additional "=#" integer parameter, like "--foo=20" or "--foo=32K".
|
||||||
|
@ -19,7 +19,7 @@
|
|||||||
using gflags::ParseCommandLineFlags;
|
using gflags::ParseCommandLineFlags;
|
||||||
|
|
||||||
#include "third_party/absl/flags/flag.h"
|
#include "third_party/absl/flags/flag.h"
|
||||||
#include "./read_dist.h"
|
#include "read_dist.h"
|
||||||
|
|
||||||
DEFINE_int32(height, 1000, "Height of the resulting histogam.");
|
DEFINE_int32(height, 1000, "Height of the resulting histogam.");
|
||||||
DEFINE_int32(width, 8000, "Width of the resulting histogam.");
|
DEFINE_int32(width, 8000, "Width of the resulting histogam.");
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#include "./durchschlag.h"
|
#include "durchschlag.h"
|
||||||
|
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
#include <exception> /* terminate */
|
#include <exception> /* terminate */
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#include "./sieve.h"
|
#include "sieve.h"
|
||||||
|
|
||||||
/* Pointer to position in (combined corpus) text. */
|
/* Pointer to position in (combined corpus) text. */
|
||||||
typedef uint32_t TextIdx;
|
typedef uint32_t TextIdx;
|
||||||
|
Loading…
Reference in New Issue
Block a user