X7ROOT File Manager
Current Path:
/opt/alt/tests/alt-php84-pecl-brotli_0.18.3-2.el8/brotli/c/enc
opt
/
alt
/
tests
/
alt-php84-pecl-brotli_0.18.3-2.el8
/
brotli
/
c
/
enc
/
??
..
??
.libs
??
backward_references.c
(6.13 KB)
??
backward_references.dep
(2.56 KB)
??
backward_references.h
(1.18 KB)
??
backward_references.lo
(303 B)
??
backward_references_hq.c
(35.88 KB)
??
backward_references_hq.dep
(2.56 KB)
??
backward_references_hq.h
(3.68 KB)
??
backward_references_hq.lo
(309 B)
??
backward_references_inc.h
(7.99 KB)
??
bit_cost.c
(1.39 KB)
??
bit_cost.dep
(1.64 KB)
??
bit_cost.h
(896 B)
??
bit_cost.lo
(281 B)
??
bit_cost_inc.h
(4.02 KB)
??
block_encoder_inc.h
(1.11 KB)
??
block_splitter.c
(7.16 KB)
??
block_splitter.dep
(1.84 KB)
??
block_splitter.h
(1.59 KB)
??
block_splitter.lo
(293 B)
??
block_splitter_inc.h
(18.44 KB)
??
brotli_bit_stream.c
(49.72 KB)
??
brotli_bit_stream.dep
(1.94 KB)
??
brotli_bit_stream.h
(3.26 KB)
??
brotli_bit_stream.lo
(299 B)
??
cluster.c
(1.42 KB)
??
cluster.dep
(1.7 KB)
??
cluster.h
(997 B)
??
cluster.lo
(279 B)
??
cluster_inc.h
(11.55 KB)
??
command.c
(1 KB)
??
command.dep
(1.24 KB)
??
command.h
(6.77 KB)
??
command.lo
(279 B)
??
compound_dictionary.c
(6.5 KB)
??
compound_dictionary.dep
(543 B)
??
compound_dictionary.h
(2.38 KB)
??
compound_dictionary.lo
(303 B)
??
compress_fragment.c
(32.1 KB)
??
compress_fragment.dep
(2 KB)
??
compress_fragment.h
(3.49 KB)
??
compress_fragment.lo
(299 B)
??
compress_fragment_two_pass.c
(26.18 KB)
??
compress_fragment_two_pass.dep
(2.08 KB)
??
compress_fragment_two_pass.h
(2.79 KB)
??
compress_fragment_two_pass.lo
(317 B)
??
dictionary_hash.c
(7.75 KB)
??
dictionary_hash.dep
(537 B)
??
dictionary_hash.h
(1.5 KB)
??
dictionary_hash.lo
(295 B)
??
dictionary_hash_inc.h
(143.28 KB)
??
encode.c
(76.58 KB)
??
encode.dep
(3.59 KB)
??
encode.lo
(277 B)
??
encoder_dict.c
(22.83 KB)
??
encoder_dict.dep
(2.58 KB)
??
encoder_dict.h
(4.9 KB)
??
encoder_dict.lo
(289 B)
??
entropy_encode.c
(14.23 KB)
??
entropy_encode.dep
(531 B)
??
entropy_encode.h
(3.96 KB)
??
entropy_encode.lo
(293 B)
??
entropy_encode_static.h
(32.37 KB)
??
fast_log.c
(5.9 KB)
??
fast_log.dep
(366 B)
??
fast_log.h
(1.61 KB)
??
fast_log.lo
(281 B)
??
find_match_length.h
(2.12 KB)
??
hash.h
(23.73 KB)
??
hash_base.h
(1.34 KB)
??
hash_composite_inc.h
(4.98 KB)
??
hash_forgetful_chain_inc.h
(11.05 KB)
??
hash_longest_match64_inc.h
(10.41 KB)
??
hash_longest_match64_simd_inc.h
(11.56 KB)
??
hash_longest_match_inc.h
(10.34 KB)
??
hash_longest_match_quickly_inc.h
(9.26 KB)
??
hash_longest_match_simd_inc.h
(11.48 KB)
??
hash_rolling_inc.h
(7.06 KB)
??
hash_to_binary_tree_inc.h
(12.77 KB)
??
histogram.c
(3.18 KB)
??
histogram.dep
(1.51 KB)
??
histogram.h
(1.77 KB)
??
histogram.lo
(283 B)
??
histogram_inc.h
(1.37 KB)
??
literal_cost.c
(5.74 KB)
??
literal_cost.dep
(505 B)
??
literal_cost.h
(889 B)
??
literal_cost.lo
(289 B)
??
matching_tag_mask.h
(2.29 KB)
??
memory.c
(5.39 KB)
??
memory.dep
(360 B)
??
memory.h
(4.2 KB)
??
memory.lo
(277 B)
??
metablock.c
(26.07 KB)
??
metablock.dep
(1.9 KB)
??
metablock.h
(3.93 KB)
??
metablock.lo
(283 B)
??
metablock_inc.h
(7.46 KB)
??
params.h
(1.14 KB)
??
prefix.h
(1.9 KB)
??
quality.h
(7.68 KB)
??
ringbuffer.h
(5.83 KB)
??
state.h
(3.01 KB)
??
static_dict.c
(20.39 KB)
??
static_dict.dep
(1.14 KB)
??
static_dict.h
(1.19 KB)
??
static_dict.lo
(287 B)
??
static_dict_lut.c
(7.25 KB)
??
static_dict_lut.dep
(685 B)
??
static_dict_lut.h
(1.55 KB)
??
static_dict_lut.lo
(295 B)
??
static_dict_lut_inc.h
(457.82 KB)
??
static_init.c
(1.74 KB)
??
static_init.dep
(451 B)
??
static_init.h
(840 B)
??
static_init.lo
(287 B)
??
utf8_util.c
(2.22 KB)
??
utf8_util.dep
(369 B)
??
utf8_util.h
(878 B)
??
utf8_util.lo
(283 B)
??
write_bits.h
(2.77 KB)
Editing: dictionary_hash.c
/* Copyright 2015 Google Inc. All Rights Reserved. Distributed under MIT license. See file LICENSE for detail or copy at https://opensource.org/licenses/MIT */ /* Hash table on the 4-byte prefixes of static dictionary words. */ #include "dictionary_hash.h" #include "../common/platform.h" /* IWYU pragma: keep */ #include "../common/static_init.h" #if (BROTLI_STATIC_INIT != BROTLI_STATIC_INIT_NONE) #include "../common/dictionary.h" #include "hash_base.h" #endif #if defined(__cplusplus) || defined(c_plusplus) extern "C" { #endif #if (BROTLI_STATIC_INIT != BROTLI_STATIC_INIT_NONE) BROTLI_BOOL BROTLI_COLD BrotliEncoderInitDictionaryHash( const BrotliDictionary* dict, uint16_t* words, uint8_t* lengths) { size_t global_idx = 0; size_t len; size_t i; static const uint8_t frozen_idx[1688] = {0, 0, 8, 164, 32, 56, 31, 191, 36, 4, 128, 81, 68, 132, 145, 129, 0, 0, 0, 28, 0, 8, 1, 1, 64, 3, 1, 0, 0, 0, 0, 0, 4, 64, 1, 2, 128, 0, 132, 49, 0, 0, 0, 0, 0, 0, 0, 0, 17, 0, 0, 0, 1, 0, 36, 152, 0, 0, 0, 0, 128, 8, 0, 0, 128, 0, 0, 8, 0, 0, 64, 0, 0, 0, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 1, 0, 64, 133, 0, 32, 0, 0, 128, 1, 0, 0, 0, 0, 4, 4, 4, 32, 16, 130, 0, 128, 8, 0, 0, 0, 0, 0, 64, 0, 64, 0, 160, 0, 148, 53, 0, 0, 0, 0, 0, 128, 0, 130, 0, 0, 0, 8, 0, 0, 0, 0, 0, 48, 0, 0, 0, 0, 0, 0, 32, 1, 32, 129, 0, 12, 0, 1, 0, 0, 0, 0, 0, 0, 0, 16, 0, 0, 0, 16, 32, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 8, 0, 0, 2, 0, 0, 0, 0, 0, 32, 0, 0, 0, 2, 66, 128, 0, 0, 16, 0, 0, 0, 0, 64, 1, 6, 128, 8, 0, 192, 24, 32, 0, 0, 8, 4, 128, 128, 2, 160, 0, 160, 0, 64, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 32, 1, 0, 0, 64, 0, 0, 0, 0, 0, 0, 32, 0, 66, 0, 2, 0, 4, 0, 8, 0, 2, 0, 0, 33, 8, 0, 0, 0, 8, 0, 128, 162, 4, 128, 0, 2, 33, 0, 160, 0, 8, 0, 64, 0, 160, 0, 129, 4, 0, 0, 32, 0, 0, 32, 0, 2, 0, 0, 0, 0, 0, 0, 128, 0, 0, 0, 0, 0, 64, 10, 0, 0, 0, 0, 32, 64, 0, 0, 0, 0, 0, 16, 0, 16, 16, 0, 0, 80, 2, 0, 0, 0, 0, 8, 0, 0, 16, 0, 8, 0, 0, 0, 8, 64, 128, 0, 0, 0, 8, 208, 0, 0, 0, 0, 0, 0, 0, 32, 0, 0, 0, 0, 0, 0, 32, 0, 8, 0, 128, 0, 0, 0, 1, 0, 0, 0, 16, 8, 1, 136, 0, 0, 36, 0, 64, 9, 0, 1, 32, 8, 0, 64, 64, 131, 16, 224, 32, 4, 0, 4, 5, 160, 0, 131, 0, 4, 96, 0, 0, 184, 192, 0, 177, 205, 96, 0, 0, 0, 0, 2, 0, 32, 0, 0, 0, 0, 0, 0, 0, 0, 64, 0, 0, 128, 0, 0, 8, 0, 0, 0, 0, 1, 4, 0, 1, 0, 0, 0, 4, 0, 0, 0, 0, 0, 0, 4, 0, 0, 64, 69, 0, 0, 8, 2, 66, 32, 64, 0, 0, 0, 0, 0, 1, 0, 128, 17, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 12, 0, 16, 0, 0, 4, 128, 64, 0, 0, 0, 0, 0, 0, 0, 0, 224, 0, 8, 0, 0, 130, 16, 64, 128, 2, 64, 0, 0, 0, 128, 2, 192, 64, 0, 65, 0, 0, 0, 16, 0, 0, 0, 32, 4, 2, 2, 76, 0, 0, 0, 4, 72, 52, 131, 44, 76, 0, 0, 0, 0, 64, 1, 16, 148, 4, 0, 16, 10, 64, 0, 2, 0, 1, 0, 128, 64, 68, 0, 0, 0, 0, 0, 64, 144, 0, 8, 0, 2, 0, 0, 0, 0, 0, 0, 3, 64, 0, 0, 0, 0, 1, 128, 0, 0, 32, 66, 0, 0, 0, 40, 0, 18, 0, 0, 0, 0, 0, 33, 0, 0, 32, 0, 0, 32, 0, 128, 4, 64, 145, 140, 0, 0, 0, 128, 0, 2, 0, 0, 20, 0, 80, 38, 0, 0, 32, 0, 32, 64, 4, 4, 0, 4, 0, 0, 0, 129, 4, 0, 0, 144, 17, 32, 130, 16, 132, 24, 134, 0, 0, 64, 2, 5, 50, 8, 194, 33, 1, 68, 117, 1, 8, 32, 161, 54, 0, 130, 34, 0, 0, 0, 64, 128, 0, 0, 2, 0, 0, 0, 0, 32, 1, 0, 0, 0, 3, 14, 0, 0, 0, 0, 0, 16, 4, 0, 0, 0, 0, 0, 0, 0, 0, 96, 1, 24, 18, 0, 1, 128, 24, 0, 64, 0, 4, 0, 16, 128, 0, 64, 0, 0, 0, 64, 0, 8, 0, 0, 0, 0, 0, 66, 128, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 16, 0, 64, 2, 0, 0, 0, 0, 6, 0, 8, 8, 2, 0, 64, 0, 0, 0, 0, 128, 2, 2, 12, 64, 0, 64, 0, 8, 0, 128, 32, 0, 0, 10, 0, 0, 32, 0, 128, 32, 33, 8, 136, 0, 96, 64, 0, 0, 0, 0, 0, 64, 4, 16, 4, 8, 0, 0, 0, 16, 0, 2, 0, 0, 1, 128, 0, 64, 16, 0, 0, 0, 0, 0, 0, 0, 0, 8, 0, 0, 2, 0, 16, 0, 4, 0, 8, 0, 0, 0, 0, 0, 20, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 8, 136, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 2, 0, 0, 0, 64, 0, 0, 1, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 128, 0, 0, 0, 0, 4, 0, 0, 0, 0, 65, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 128, 0, 0, 0, 8, 2, 0, 0, 128, 0, 16, 2, 0, 0, 4, 0, 32, 0, 0, 1, 4, 64, 64, 0, 4, 0, 1, 0, 16, 0, 32, 68, 4, 4, 65, 10, 0, 20, 37, 18, 1, 148, 0, 32, 128, 3, 8, 0, 64, 0, 0, 0, 0, 0, 0, 4, 0, 16, 1, 128, 0, 0, 0, 128, 16, 0, 0, 0, 0, 1, 128, 0, 0, 128, 64, 128, 64, 0, 130, 0, 164, 8, 0, 0, 1, 64, 128, 0, 18, 0, 2, 150, 0, 8, 0, 0, 64, 0, 81, 0, 0, 16, 128, 2, 8, 36, 32, 129, 4, 144, 13, 0, 0, 3, 8, 1, 0, 2, 0, 0, 64, 0, 5, 0, 1, 34, 1, 32, 2, 16, 128, 128, 128, 0, 0, 0, 2, 0, 4, 18, 8, 12, 34, 32, 192, 6, 64, 224, 33, 0, 0, 137, 72, 64, 0, 24, 8, 128, 128, 0, 16, 0, 32, 128, 128, 132, 8, 0, 0, 16, 0, 64, 0, 0, 4, 0, 0, 16, 0, 4, 128, 64, 0, 0, 1, 0, 4, 64, 32, 144, 130, 2, 128, 0, 192, 0, 64, 82, 64, 1, 32, 128, 128, 2, 0, 84, 0, 32, 0, 44, 24, 72, 80, 32, 16, 0, 0, 44, 16, 96, 64, 1, 72, 131, 0, 0, 0, 16, 0, 0, 165, 0, 129, 2, 49, 48, 64, 64, 12, 64, 176, 64, 84, 8, 128, 20, 64, 213, 136, 104, 1, 41, 15, 83, 170, 0, 0, 41, 1, 64, 64, 0, 193, 64, 64, 8, 0, 128, 0, 0, 64, 8, 64, 8, 1, 16, 0, 8, 0, 0, 2, 1, 128, 28, 84, 141, 97, 0, 0, 68, 0, 0, 129, 8, 0, 16, 8, 32, 0, 64, 0, 0, 0, 24, 0, 0, 0, 192, 0, 8, 128, 0, 0, 0, 0, 0, 64, 0, 1, 0, 0, 0, 0, 40, 1, 128, 64, 0, 4, 2, 32, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 128, 32, 8, 0, 32, 0, 0, 0, 16, 17, 0, 2, 4, 0, 0, 33, 128, 2, 0, 0, 0, 0, 129, 0, 2, 0, 0, 0, 36, 0, 32, 2, 0, 0, 0, 0, 0, 0, 32, 0, 0, 0, 0, 4, 0, 0, 0, 0, 0, 0, 0, 4, 32, 64, 0, 0, 0, 0, 0, 0, 32, 0, 0, 32, 128, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 128, 16, 0, 0, 0, 0, 0, 0, 0, 1, 0, 136, 0, 0, 24, 192, 128, 3, 0, 17, 18, 2, 0, 66, 0, 4, 24, 0, 9, 208, 167, 0, 144, 20, 64, 0, 130, 64, 0, 2, 16, 136, 8, 74, 32, 0, 168, 0, 65, 32, 8, 12, 1, 3, 1, 64, 180, 3, 0, 64, 0, 8, 0, 0, 32, 65, 0, 4, 16, 4, 16, 68, 32, 64, 36, 32, 24, 33, 1, 128, 0, 0, 8, 0, 32, 64, 81, 0, 1, 10, 19, 8, 0, 0, 4, 5, 144, 0, 0, 8, 128, 0, 0, 4, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 8, 0, 0, 0, 0, 0, 80, 1, 0, 0, 33, 0, 32, 66, 4, 2, 0, 1, 43, 2, 0, 0, 4, 32, 16, 0, 64, 0, 3, 32, 0, 2, 64, 64, 116, 0, 65, 52, 64, 0, 17, 64, 192, 96, 8, 10, 8, 2, 4, 0, 17, 64, 0, 4, 0, 0, 4, 128, 0, 0, 9, 0, 0, 130, 2, 0, 192, 0, 48, 128, 64, 0, 96, 0, 64, 0, 1, 16, 32, 0, 1, 32, 6, 128, 2, 32, 0, 12, 0, 0, 48, 32, 8, 0, 0, 128, 0, 18, 0, 0, 28, 24, 41, 16, 5, 32, 0, 0, 0, 0, 0, 0, 0, 16, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 16, 0, 0, 0, 0, 64, 0, 0, 0, 0, 8, 0, 0, 0, 0, 16, 128, 0, 0, 0, 16, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 33, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 16, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}; memset(lengths, 0, BROTLI_ENC_NUM_HASH_BUCKETS); for (len = BROTLI_MAX_DICTIONARY_WORD_LENGTH; len >= BROTLI_MIN_DICTIONARY_WORD_LENGTH; --len) { size_t length_lt_8 = len < 8 ? 1 : 0; size_t n = 1u << dict->size_bits_by_length[len]; const uint8_t* dict_words = dict->data + dict->offsets_by_length[len]; for (i = 0; i < n; ++i) { size_t j = n - 1 - i; const uint8_t* word = dict_words + len * j; const uint32_t key = Hash14(word); size_t idx = (key << 1) + length_lt_8; if ((lengths[idx] & 0x80) == 0) { BROTLI_BOOL is_final = TO_BROTLI_BOOL(frozen_idx[global_idx / 8] & (1u << (global_idx % 8))); words[idx] = (uint16_t)j; lengths[idx] = (uint8_t)(len + (is_final ? 0x80 : 0)); } global_idx++; } } for (i = 0; i < BROTLI_ENC_NUM_HASH_BUCKETS; ++i) { lengths[i] &= 0x7F; } return BROTLI_TRUE; } BROTLI_MODEL("small") uint16_t kStaticDictionaryHashWords[BROTLI_ENC_NUM_HASH_BUCKETS]; BROTLI_MODEL("small") uint8_t kStaticDictionaryHashLengths[BROTLI_ENC_NUM_HASH_BUCKETS]; #else /* BROTLI_STATIC_INIT */ /* Embed kStaticDictionaryHashWords and kStaticDictionaryHashLengths. */ #include "dictionary_hash_inc.h" #endif /* BROTLI_STATIC_INIT */ #if defined(__cplusplus) || defined(c_plusplus) } /* extern "C" */ #endif
Upload File
Create Folder