Home
last modified time | relevance | path

Searched refs:num_codes (Results 1 – 9 of 9) sorted by relevance

/external/grpc-grpc/src/core/lib/slice/
Db64.cc147 static int decode_group(const unsigned char* codes, size_t num_codes, in decode_group() argument
149 GPR_ASSERT(num_codes <= 4); in decode_group()
152 if (num_codes == 1) { in decode_group()
156 if (num_codes == 2) { in decode_group()
160 if (num_codes == 3) { in decode_group()
166 GPR_ASSERT(num_codes == 4); in decode_group()
198 size_t num_codes = 0; in grpc_base64_decode_with_len() local
222 codes[num_codes++] = static_cast<unsigned char>(code); in grpc_base64_decode_with_len()
223 if (num_codes == 4) { in grpc_base64_decode_with_len()
224 if (!decode_group(codes, num_codes, current, &result_size)) goto fail; in grpc_base64_decode_with_len()
[all …]
/external/puffin/src/
Dhuffman_table.cc253 auto num_codes = br->ReadBits(4) + 4; in BuildDynamicHuffmanTable() local
257 CheckHuffmanArrayLengths(num_lit_len, num_distance, num_codes)); in BuildDynamicHuffmanTable()
261 TEST_AND_RETURN_FALSE(*length - index >= (num_codes + 1) / 2); in BuildDynamicHuffmanTable()
263 for (; idx < num_codes; idx++) { in BuildDynamicHuffmanTable()
317 size_t num_codes, in BuildHuffmanCodeLengths() argument
321 for (size_t idx = 0; idx < num_codes;) { in BuildHuffmanCodeLengths()
373 TEST_AND_RETURN_FALSE(lens->size() == num_codes); in BuildHuffmanCodeLengths()
406 size_t num_codes = buffer[index] + 4; in BuildDynamicHuffmanTable() local
410 CheckHuffmanArrayLengths(num_lit_len, num_distance, num_codes)); in BuildDynamicHuffmanTable()
412 TEST_AND_RETURN_FALSE(length - index >= (num_codes + 1) / 2); in BuildDynamicHuffmanTable()
[all …]
Dhuffman_table.h54 size_t num_codes) { in CheckHuffmanArrayLengths() argument
55 if (num_lit_len > 286 || num_distance > 30 || num_codes > 19) { in CheckHuffmanArrayLengths()
59 << "num_codes(" << num_codes << ")"; in CheckHuffmanArrayLengths()
239 size_t num_codes,
255 size_t num_codes,
/external/brotli/c/enc/
Dbrotli_bit_stream.c184 const int num_codes, const uint8_t* code_length_bitdepth, in BrotliStoreHuffmanTreeOfHuffmanTreeToBitMask() argument
210 if (num_codes > 1) { in BrotliStoreHuffmanTreeOfHuffmanTreeToBitMask()
311 int num_codes = 0; in BrotliStoreHuffmanTree() local
326 if (num_codes == 0) { in BrotliStoreHuffmanTree()
328 num_codes = 1; in BrotliStoreHuffmanTree()
329 } else if (num_codes == 1) { in BrotliStoreHuffmanTree()
330 num_codes = 2; in BrotliStoreHuffmanTree()
345 BrotliStoreHuffmanTreeOfHuffmanTreeToBitMask(num_codes, code_length_bitdepth, in BrotliStoreHuffmanTree()
348 if (num_codes == 1) { in BrotliStoreHuffmanTree()
/external/v8/src/compiler/
Dregister-allocator.cc2925 int* num_regs, int* num_codes, in GetFPRegisterSet() argument
2930 *num_codes = data()->config()->num_allocatable_float_registers(); in GetFPRegisterSet()
2934 *num_codes = data()->config()->num_allocatable_simd128_registers(); in GetFPRegisterSet()
2944 int num_codes = num_allocatable_registers(); in FindFreeRegistersForRange() local
2949 GetFPRegisterSet(rep, &num_regs, &num_codes, &codes); in FindFreeRegistersForRange()
3082 int num_codes = num_allocatable_registers(); in TryAllocateFreeReg() local
3087 GetFPRegisterSet(rep, &num_regs, &num_codes, &codes); in TryAllocateFreeReg()
3090 DCHECK_GE(free_until_pos.length(), num_codes); in TryAllocateFreeReg()
3104 for (int i = 0; i < num_codes; ++i) { in TryAllocateFreeReg()
3149 int num_codes = num_allocatable_registers(); in AllocateBlockedReg() local
[all …]
Dregister-allocator.h1073 int* num_codes, const int** codes) const;
/external/brotli/c/dec/
Ddecode.c687 uint32_t num_codes = s->repeat; in ReadCodeLengthCodeLengths() local
703 s->repeat = num_codes; in ReadCodeLengthCodeLengths()
715 ++num_codes; in ReadCodeLengthCodeLengths()
723 if (!(num_codes == 1 || space == 0)) { in ReadCodeLengthCodeLengths()
/external/webp/src/enc/
Dhistogram_enc.c513 const int num_codes = VP8LHistogramNumCodes(h->palette_code_bits_); in UpdateHistogramCost() local
515 PopulationCost(h->literal_, num_codes, NULL, &h->is_used_[0]) + in UpdateHistogramCost()
/external/webp/src/dec/
Dvp8l_dec.c333 const int num_codes = VP8LReadBits(br, 4) + 4; in ReadHuffmanCode() local
334 if (num_codes > NUM_CODE_LENGTH_CODES) { in ReadHuffmanCode()
339 for (i = 0; i < num_codes; ++i) { in ReadHuffmanCode()