Lines Matching refs:match_len

475 static int find_match_at(lz_info *lzi, int loc, int match_len, int *match_locp)  in find_match_at()  argument
483 if (loc < match_len) return -1; in find_match_at()
489 for (j = 0; j < match_len; j++) { in find_match_at()
492 if (j == match_len) { in find_match_at()
494 …tderr, "match found %d, old = %d new = %d len = %d\n", lzi->cur_loc, -*match_locp, loc, match_len); in find_match_at()
502 static int find_match_at(lz_info *lzi, int loc, int match_len, int *match_locp) in find_match_at() argument
510 if (loc < match_len) return -1; in find_match_at()
518 for (j = 0; j < match_len; j++) { in find_match_at()
523 if (j == match_len) { in find_match_at()
525 …tderr, "match found %d, old = %d new = %d len = %d\n", lzi->cur_loc, -*match_locp, loc, match_len); in find_match_at()
596 lzx_output_match(lz_info *lzi, int match_pos, int match_len) in lzx_output_match() argument
611 for (i = 0; i < match_len; i++) { in lzx_output_match()
650 if (find_match_at(lzi, lzud->R0, match_len, &match_pos) == 0) in lzx_output_match()
652 if (find_match_at(lzi, lzud->R1, match_len, &match_pos) == 0) in lzx_output_match()
654 if (find_match_at(lzi, lzud->R2, match_len, &match_pos) == 0) in lzx_output_match()
660 if ((match_len < 3) || in lzx_output_match()
661 ((formatted_offset >= 64) && (match_len < 4)) || in lzx_output_match()
662 ((formatted_offset >= 2048) && (match_len < 5)) || in lzx_output_match()
663 ((formatted_offset >= 65536) && (match_len < 6))) { in lzx_output_match()
723 …fprintf(stderr, "(%d, %d, %d, %d, %d)\n", match_pos, match_len, formatted_offset, position_slot, p… in lzx_output_match()
733 …fprintf(stderr, "(%08x, %d, %d, %d, %d, %d)\n", lzud->lzi->cur_loc , match_pos, match_len, formatt… in lzx_output_match()
735 …%d, %d)\n", lzud->lzi->cur_loc - lzud->lzi->chars_in_match , match_pos, match_len, formatted_offse… in lzx_output_match()
746 (match_len - MIN_MATCH); /* bits 0-7 */ in lzx_output_match()
748 if (match_len < (NUM_PRIMARY_LENGTHS + MIN_MATCH)) { in lzx_output_match()
749 length_header = match_len - MIN_MATCH; in lzx_output_match()
754 length_footer = match_len - (NUM_PRIMARY_LENGTHS + MIN_MATCH); in lzx_output_match()
763 lzud->left_in_block -= match_len; in lzx_output_match()