Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions deps/brotli/c/common/constants.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@

#include "constants.h"

const BrotliPrefixCodeRange
_kBrotliPrefixCodeRanges[BROTLI_NUM_BLOCK_LEN_SYMBOLS] = {
{1, 2}, {5, 2}, {9, 2}, {13, 2}, {17, 3}, {25, 3},
{33, 3}, {41, 3}, {49, 4}, {65, 4}, {81, 4}, {97, 4},
{113, 5}, {145, 5}, {177, 5}, {209, 5}, {241, 6}, {305, 6},
{369, 7}, {497, 8}, {753, 9}, {1265, 10}, {2289, 11}, {4337, 12},
{8433, 13}, {16625, 24}};
const BROTLI_MODEL("small")
BrotliPrefixCodeRange _kBrotliPrefixCodeRanges[BROTLI_NUM_BLOCK_LEN_SYMBOLS] = {
{1, 2}, {5, 2}, {9, 2}, {13, 2}, {17, 3}, {25, 3},
{33, 3}, {41, 3}, {49, 4}, {65, 4}, {81, 4}, {97, 4},
{113, 5}, {145, 5}, {177, 5}, {209, 5}, {241, 6}, {305, 6},
{369, 7}, {497, 8}, {753, 9}, {1265, 10}, {2289, 11}, {4337, 12},
{8433, 13}, {16625, 24}};
7 changes: 2 additions & 5 deletions deps/brotli/c/common/constants.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@
#ifndef BROTLI_COMMON_CONSTANTS_H_
#define BROTLI_COMMON_CONSTANTS_H_

#include <brotli/port.h>
#include <brotli/types.h>

#include "platform.h"

/* Specification: 7.3. Encoding of the context map */
Expand Down Expand Up @@ -195,7 +192,7 @@ typedef struct {
} BrotliPrefixCodeRange;

/* "Soft-private", it is exported, but not "advertised" as API. */
BROTLI_COMMON_API extern const BrotliPrefixCodeRange
_kBrotliPrefixCodeRanges[BROTLI_NUM_BLOCK_LEN_SYMBOLS];
BROTLI_COMMON_API extern const BROTLI_MODEL("small")
BrotliPrefixCodeRange _kBrotliPrefixCodeRanges[BROTLI_NUM_BLOCK_LEN_SYMBOLS];

#endif /* BROTLI_COMMON_CONSTANTS_H_ */
4 changes: 2 additions & 2 deletions deps/brotli/c/common/context.c
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#include "context.h"

#include <brotli/types.h>
#include "platform.h"

/* Common context lookup table for all context modes. */
const uint8_t _kBrotliContextLookupTable[2048] = {
const BROTLI_MODEL("small") uint8_t _kBrotliContextLookupTable[2048] = {
/* CONTEXT_LSB6, last byte. */
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15,
16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31,
Expand Down
3 changes: 1 addition & 2 deletions deps/brotli/c/common/context.h
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,7 @@
#ifndef BROTLI_COMMON_CONTEXT_H_
#define BROTLI_COMMON_CONTEXT_H_

#include <brotli/port.h>
#include <brotli/types.h>
#include "platform.h"

typedef enum ContextType {
CONTEXT_LSB6 = 0,
Expand Down
5,860 changes: 4 additions & 5,856 deletions deps/brotli/c/common/dictionary.c

Large diffs are not rendered by default.

3 changes: 1 addition & 2 deletions deps/brotli/c/common/dictionary.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@
#ifndef BROTLI_COMMON_DICTIONARY_H_
#define BROTLI_COMMON_DICTIONARY_H_

#include <brotli/port.h>
#include <brotli/types.h>
#include "platform.h"

#if defined(__cplusplus) || defined(c_plusplus)
extern "C" {
Expand Down
5,847 changes: 5,847 additions & 0 deletions deps/brotli/c/common/dictionary_inc.h

Large diffs are not rendered by default.

4 changes: 0 additions & 4 deletions deps/brotli/c/common/platform.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,6 @@
See file LICENSE for detail or copy at https://opensource.org/licenses/MIT
*/

#include <stdlib.h>

#include <brotli/types.h>

#include "platform.h"

/* Default brotli_alloc_func */
Expand Down
Loading
Loading