Skip to content

Commit 00a8377

Browse files
deps: update brotli to 1.2.0
PR-URL: #60540 Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
1 parent b8b4350 commit 00a8377

File tree

102 files changed

+16727
-14845
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

102 files changed

+16727
-14845
lines changed

deps/brotli/brotli.gyp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@
1313
'c/dec/bit_reader.c',
1414
'c/dec/decode.c',
1515
'c/dec/huffman.c',
16+
'c/dec/prefix.c',
1617
'c/dec/state.c',
18+
'c/dec/static_init.c',
1719

1820
# Encoder
1921
'c/enc/backward_references.c',
@@ -36,6 +38,8 @@
3638
'c/enc/memory.c',
3739
'c/enc/metablock.c',
3840
'c/enc/static_dict.c',
41+
'c/enc/static_dict_lut.c',
42+
'c/enc/static_init.c',
3943
'c/enc/utf8_util.c',
4044
]
4145
},

deps/brotli/c/common/constants.c

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@
66

77
#include "constants.h"
88

9-
const BrotliPrefixCodeRange
10-
_kBrotliPrefixCodeRanges[BROTLI_NUM_BLOCK_LEN_SYMBOLS] = {
11-
{1, 2}, {5, 2}, {9, 2}, {13, 2}, {17, 3}, {25, 3},
12-
{33, 3}, {41, 3}, {49, 4}, {65, 4}, {81, 4}, {97, 4},
13-
{113, 5}, {145, 5}, {177, 5}, {209, 5}, {241, 6}, {305, 6},
14-
{369, 7}, {497, 8}, {753, 9}, {1265, 10}, {2289, 11}, {4337, 12},
15-
{8433, 13}, {16625, 24}};
9+
const BROTLI_MODEL("small")
10+
BrotliPrefixCodeRange _kBrotliPrefixCodeRanges[BROTLI_NUM_BLOCK_LEN_SYMBOLS] = {
11+
{1, 2}, {5, 2}, {9, 2}, {13, 2}, {17, 3}, {25, 3},
12+
{33, 3}, {41, 3}, {49, 4}, {65, 4}, {81, 4}, {97, 4},
13+
{113, 5}, {145, 5}, {177, 5}, {209, 5}, {241, 6}, {305, 6},
14+
{369, 7}, {497, 8}, {753, 9}, {1265, 10}, {2289, 11}, {4337, 12},
15+
{8433, 13}, {16625, 24}};

deps/brotli/c/common/constants.h

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,6 @@
1212
#ifndef BROTLI_COMMON_CONSTANTS_H_
1313
#define BROTLI_COMMON_CONSTANTS_H_
1414

15-
#include <brotli/port.h>
16-
#include <brotli/types.h>
17-
1815
#include "platform.h"
1916

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

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

201198
#endif /* BROTLI_COMMON_CONSTANTS_H_ */

deps/brotli/c/common/context.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
#include "context.h"
22

3-
#include <brotli/types.h>
3+
#include "platform.h"
44

55
/* Common context lookup table for all context modes. */
6-
const uint8_t _kBrotliContextLookupTable[2048] = {
6+
const BROTLI_MODEL("small") uint8_t _kBrotliContextLookupTable[2048] = {
77
/* CONTEXT_LSB6, last byte. */
88
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15,
99
16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31,

deps/brotli/c/common/context.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,7 @@
8888
#ifndef BROTLI_COMMON_CONTEXT_H_
8989
#define BROTLI_COMMON_CONTEXT_H_
9090

91-
#include <brotli/port.h>
92-
#include <brotli/types.h>
91+
#include "platform.h"
9392

9493
typedef enum ContextType {
9594
CONTEXT_LSB6 = 0,

deps/brotli/c/common/dictionary.c

Lines changed: 4 additions & 5856 deletions
Large diffs are not rendered by default.

deps/brotli/c/common/dictionary.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@
99
#ifndef BROTLI_COMMON_DICTIONARY_H_
1010
#define BROTLI_COMMON_DICTIONARY_H_
1111

12-
#include <brotli/port.h>
13-
#include <brotli/types.h>
12+
#include "platform.h"
1413

1514
#if defined(__cplusplus) || defined(c_plusplus)
1615
extern "C" {

deps/brotli/c/common/dictionary_inc.h

Lines changed: 5847 additions & 0 deletions
Large diffs are not rendered by default.

deps/brotli/c/common/platform.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,6 @@
44
See file LICENSE for detail or copy at https://opensource.org/licenses/MIT
55
*/
66

7-
#include <stdlib.h>
8-
9-
#include <brotli/types.h>
10-
117
#include "platform.h"
128

139
/* Default brotli_alloc_func */

0 commit comments

Comments
 (0)