Lines Matching refs:start
491 size_t start = reader->bp >> 3u; in ensureBits9() local
493 if(start + 1u < size) { in ensureBits9()
494 reader->buffer = (unsigned)reader->data[start + 0] | ((unsigned)reader->data[start + 1] << 8u); in ensureBits9()
499 if(start + 0u < size) reader->buffer |= reader->data[start + 0]; in ensureBits9()
507 size_t start = reader->bp >> 3u; in ensureBits17() local
509 if(start + 2u < size) { in ensureBits17()
510 reader->buffer = (unsigned)reader->data[start + 0] | ((unsigned)reader->data[start + 1] << 8u) | in ensureBits17()
511 ((unsigned)reader->data[start + 2] << 16u); in ensureBits17()
516 if(start + 0u < size) reader->buffer |= reader->data[start + 0]; in ensureBits17()
517 if(start + 1u < size) reader->buffer |= ((unsigned)reader->data[start + 1] << 8u); in ensureBits17()
525 size_t start = reader->bp >> 3u; in ensureBits25() local
527 if(start + 3u < size) { in ensureBits25()
528 reader->buffer = (unsigned)reader->data[start + 0] | ((unsigned)reader->data[start + 1] << 8u) | in ensureBits25()
529 … ((unsigned)reader->data[start + 2] << 16u) | ((unsigned)reader->data[start + 3] << 24u); in ensureBits25()
534 if(start + 0u < size) reader->buffer |= reader->data[start + 0]; in ensureBits25()
535 if(start + 1u < size) reader->buffer |= ((unsigned)reader->data[start + 1] << 8u); in ensureBits25()
536 if(start + 2u < size) reader->buffer |= ((unsigned)reader->data[start + 2] << 16u); in ensureBits25()
544 size_t start = reader->bp >> 3u; in ensureBits32() local
546 if(start + 4u < size) { in ensureBits32()
547 reader->buffer = (unsigned)reader->data[start + 0] | ((unsigned)reader->data[start + 1] << 8u) | in ensureBits32()
548 … ((unsigned)reader->data[start + 2] << 16u) | ((unsigned)reader->data[start + 3] << 24u); in ensureBits32()
550 reader->buffer |= (((unsigned)reader->data[start + 4] << 24u) << (8u - (reader->bp & 7u))); in ensureBits32()
554 if(start + 0u < size) reader->buffer |= reader->data[start + 0]; in ensureBits32()
555 if(start + 1u < size) reader->buffer |= ((unsigned)reader->data[start + 1] << 8u); in ensureBits32()
556 if(start + 2u < size) reader->buffer |= ((unsigned)reader->data[start + 2] << 16u); in ensureBits32()
557 if(start + 3u < size) reader->buffer |= ((unsigned)reader->data[start + 3] << 24u); in ensureBits32()
762 unsigned start = tree->table_value[index]; /*starting index in secondary table*/ in HuffmanTree_makeTable() local
768 unsigned index2 = start + (reverse2 | (j << (l - FIRSTBITS))); in HuffmanTree_makeTable()
1285 size_t start, backward, length; in inflateHuffmanBlock() local
1317 start = out->size; in inflateHuffmanBlock()
1318 if(distance > start) ERROR_BREAK(52); /*too long backward distance*/ in inflateHuffmanBlock()
1319 backward = start - distance; in inflateHuffmanBlock()
1324 lodepng_memcpy(out->data + start, out->data + backward, distance); in inflateHuffmanBlock()
1325 start += distance; in inflateHuffmanBlock()
1327 out->data[start++] = out->data[backward++]; in inflateHuffmanBlock()
1330 lodepng_memcpy(out->data + start, out->data + backward, length); in inflateHuffmanBlock()
1563 const unsigned char* start = data + pos; in countZeros() local
1564 const unsigned char* end = start + MAX_SUPPORTED_DEFLATE_LENGTH; in countZeros()
1566 data = start; in countZeros()
1569 return (unsigned)(data - start); in countZeros()
2100 size_t start = i * blocksize; in lodepng_deflatev() local
2101 size_t end = start + blocksize; in lodepng_deflatev()
2104 … if(settings->btype == 1) error = deflateFixed(&writer, &hash, in, start, end, settings, final); in lodepng_deflatev()
2105 …else if(settings->btype == 2) error = deflateDynamic(&writer, &hash, in, start, end, settings, fin… in lodepng_deflatev()