Home
last modified time | relevance | path

Searched refs:inscode (Results 1 – 10 of 10) sorted by relevance

/third_party/node/deps/brotli/c/enc/
Dcommand.h63 uint16_t inscode, uint16_t copycode, BROTLI_BOOL use_last_distance) { in CombineLengthCodes() argument
65 (uint16_t)((copycode & 0x7u) | ((inscode & 0x7u) << 3u)); in CombineLengthCodes()
66 if (use_last_distance && inscode < 8u && copycode < 16u) { in CombineLengthCodes()
71 uint32_t offset = 2u * ((copycode >> 3u) + 3u * (inscode >> 3u)); in CombineLengthCodes()
86 uint16_t inscode = GetInsertLengthCode(insertlen); in GetLengthCode() local
88 *code = CombineLengthCodes(inscode, copycode, use_last_distance); in GetLengthCode()
91 static BROTLI_INLINE uint32_t GetInsertBase(uint16_t inscode) { in GetInsertBase() argument
92 return kBrotliInsBase[inscode]; in GetInsertBase()
95 static BROTLI_INLINE uint32_t GetInsertExtra(uint16_t inscode) { in GetInsertExtra() argument
96 return kBrotliInsExtra[inscode]; in GetInsertExtra()
Dcompress_fragment.c191 const size_t inscode = (nbits << 1) + prefix + 42; in EmitInsertLen() local
192 BrotliWriteBits(depth[inscode], bits[inscode], storage_ix, storage); in EmitInsertLen()
194 ++histo[inscode]; in EmitInsertLen()
Dbackward_references_hq.c438 const uint16_t inscode = GetInsertLengthCode(pos - start); in UpdateNodes() local
440 const float base_cost = start_costdiff + (float)GetInsertExtra(inscode) + in UpdateNodes()
487 CombineLengthCodes(inscode, copycode, j == 0); in UpdateNodes()
540 const uint16_t cmdcode = CombineLengthCodes(inscode, copycode, 0); in UpdateNodes()
Dcompress_fragment_two_pass.c126 const uint32_t inscode = (nbits << 1) + prefix + 2; in EmitInsertLen() local
128 **commands = inscode | (extra << 8); in EmitInsertLen()
Dbrotli_bit_stream.c88 uint16_t inscode = GetInsertLengthCode(cmd->insert_len_); in StoreCommandExtra() local
90 uint32_t insnumextra = GetInsertExtra(inscode); in StoreCommandExtra()
91 uint64_t insextraval = cmd->insert_len_ - GetInsertBase(inscode); in StoreCommandExtra()
/third_party/skia/third_party/externals/brotli/c/enc/
Dcommand.h63 uint16_t inscode, uint16_t copycode, BROTLI_BOOL use_last_distance) { in CombineLengthCodes() argument
65 (uint16_t)((copycode & 0x7u) | ((inscode & 0x7u) << 3u)); in CombineLengthCodes()
66 if (use_last_distance && inscode < 8u && copycode < 16u) { in CombineLengthCodes()
71 uint32_t offset = 2u * ((copycode >> 3u) + 3u * (inscode >> 3u)); in CombineLengthCodes()
86 uint16_t inscode = GetInsertLengthCode(insertlen); in GetLengthCode() local
88 *code = CombineLengthCodes(inscode, copycode, use_last_distance); in GetLengthCode()
91 static BROTLI_INLINE uint32_t GetInsertBase(uint16_t inscode) { in GetInsertBase() argument
92 return kBrotliInsBase[inscode]; in GetInsertBase()
95 static BROTLI_INLINE uint32_t GetInsertExtra(uint16_t inscode) { in GetInsertExtra() argument
96 return kBrotliInsExtra[inscode]; in GetInsertExtra()
Dcompress_fragment.c191 const size_t inscode = (nbits << 1) + prefix + 42; in EmitInsertLen() local
192 BrotliWriteBits(depth[inscode], bits[inscode], storage_ix, storage); in EmitInsertLen()
194 ++histo[inscode]; in EmitInsertLen()
Dbackward_references_hq.c438 const uint16_t inscode = GetInsertLengthCode(pos - start); in UpdateNodes() local
440 const float base_cost = start_costdiff + (float)GetInsertExtra(inscode) + in UpdateNodes()
487 CombineLengthCodes(inscode, copycode, j == 0); in UpdateNodes()
540 const uint16_t cmdcode = CombineLengthCodes(inscode, copycode, 0); in UpdateNodes()
Dcompress_fragment_two_pass.c126 const uint32_t inscode = (nbits << 1) + prefix + 2; in EmitInsertLen() local
128 **commands = inscode | (extra << 8); in EmitInsertLen()
Dbrotli_bit_stream.c88 uint16_t inscode = GetInsertLengthCode(cmd->insert_len_); in StoreCommandExtra() local
90 uint32_t insnumextra = GetInsertExtra(inscode); in StoreCommandExtra()
91 uint64_t insextraval = cmd->insert_len_ - GetInsertBase(inscode); in StoreCommandExtra()