Skip to content

Commit 481cced

Browse files
committedSep 22, 2020
deps: update brotli to v1.0.9
Refs: https://github.com/google/brotli/releases/tag/v1.0.8 Refs: https://github.com/google/brotli/releases/tag/v1.0.9 PR-URL: #34937 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Gerhard Stöbich <deb2001-github@yahoo.de> Reviewed-By: Jiawen Geng <technicalcute@gmail.com>
1 parent a5b4526 commit 481cced

Some content is hidden

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

57 files changed

+3895
-2388
lines changed
 

‎deps/brotli/brotli.gyp

+5
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,10 @@
2929
],
3030
'sources': [
3131
# Common
32+
'c/common/constants.c',
33+
'c/common/context.c',
3234
'c/common/dictionary.c',
35+
'c/common/platform.c',
3336
'c/common/transform.c',
3437

3538
# Decoder
@@ -45,12 +48,14 @@
4548
'c/enc/block_splitter.c',
4649
'c/enc/brotli_bit_stream.c',
4750
'c/enc/cluster.c',
51+
'c/enc/command.c',
4852
'c/enc/compress_fragment.c',
4953
'c/enc/compress_fragment_two_pass.c',
5054
'c/enc/dictionary_hash.c',
5155
'c/enc/encode.c',
5256
'c/enc/encoder_dict.c',
5357
'c/enc/entropy_encode.c',
58+
'c/enc/fast_log.c',
5459
'c/enc/histogram.c',
5560
'c/enc/literal_cost.c',
5661
'c/enc/memory.c',

‎deps/brotli/c/common/constants.c

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
/* Copyright 2013 Google Inc. All Rights Reserved.
2+
3+
Distributed under MIT license.
4+
See file LICENSE for detail or copy at https://opensource.org/licenses/MIT
5+
*/
6+
7+
#include "./constants.h"
8+
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}};

0 commit comments

Comments
 (0)