Lines Matching refs:lzma

266 	struct lzma_dec lzma;  member
577 uint32_t low = prev_byte >> (8 - s->lzma.lc); in lzma_literal_probs()
578 uint32_t high = (s->dict.pos & s->lzma.literal_pos_mask) << s->lzma.lc; in lzma_literal_probs()
579 return s->lzma.literal[low + high]; in lzma_literal_probs()
594 if (lzma_state_is_literal(s->lzma.state)) { in lzma_literal()
598 match_byte = dict_get(&s->dict, s->lzma.rep0) << 1; in lzma_literal()
617 lzma_state_literal(&s->lzma.state); in lzma_literal()
630 s->lzma.len = MATCH_LEN_MIN; in lzma_len()
635 s->lzma.len = MATCH_LEN_MIN + LEN_LOW_SYMBOLS; in lzma_len()
639 s->lzma.len = MATCH_LEN_MIN + LEN_LOW_SYMBOLS in lzma_len()
644 s->lzma.len += rc_bittree(&s->rc, probs, limit) - limit; in lzma_len()
654 lzma_state_match(&s->lzma.state); in lzma_match()
656 s->lzma.rep3 = s->lzma.rep2; in lzma_match()
657 s->lzma.rep2 = s->lzma.rep1; in lzma_match()
658 s->lzma.rep1 = s->lzma.rep0; in lzma_match()
660 lzma_len(s, &s->lzma.match_len_dec, pos_state); in lzma_match()
662 probs = s->lzma.dist_slot[lzma_get_dist_state(s->lzma.len)]; in lzma_match()
666 s->lzma.rep0 = dist_slot; in lzma_match()
669 s->lzma.rep0 = 2 + (dist_slot & 1); in lzma_match()
672 s->lzma.rep0 <<= limit; in lzma_match()
673 probs = s->lzma.dist_special + s->lzma.rep0 in lzma_match()
676 &s->lzma.rep0, limit); in lzma_match()
678 rc_direct(&s->rc, &s->lzma.rep0, limit - ALIGN_BITS); in lzma_match()
679 s->lzma.rep0 <<= ALIGN_BITS; in lzma_match()
680 rc_bittree_reverse(&s->rc, s->lzma.dist_align, in lzma_match()
681 &s->lzma.rep0, ALIGN_BITS); in lzma_match()
694 if (!rc_bit(&s->rc, &s->lzma.is_rep0[s->lzma.state])) { in lzma_rep_match()
695 if (!rc_bit(&s->rc, &s->lzma.is_rep0_long[ in lzma_rep_match()
696 s->lzma.state][pos_state])) { in lzma_rep_match()
697 lzma_state_short_rep(&s->lzma.state); in lzma_rep_match()
698 s->lzma.len = 1; in lzma_rep_match()
702 if (!rc_bit(&s->rc, &s->lzma.is_rep1[s->lzma.state])) { in lzma_rep_match()
703 tmp = s->lzma.rep1; in lzma_rep_match()
705 if (!rc_bit(&s->rc, &s->lzma.is_rep2[s->lzma.state])) { in lzma_rep_match()
706 tmp = s->lzma.rep2; in lzma_rep_match()
708 tmp = s->lzma.rep3; in lzma_rep_match()
709 s->lzma.rep3 = s->lzma.rep2; in lzma_rep_match()
712 s->lzma.rep2 = s->lzma.rep1; in lzma_rep_match()
715 s->lzma.rep1 = s->lzma.rep0; in lzma_rep_match()
716 s->lzma.rep0 = tmp; in lzma_rep_match()
719 lzma_state_long_rep(&s->lzma.state); in lzma_rep_match()
720 lzma_len(s, &s->lzma.rep_len_dec, pos_state); in lzma_rep_match()
732 if (dict_has_space(&s->dict) && s->lzma.len > 0) in lzma_main()
733 dict_repeat(&s->dict, &s->lzma.len, s->lzma.rep0); in lzma_main()
740 pos_state = s->dict.pos & s->lzma.pos_mask; in lzma_main()
742 if (!rc_bit(&s->rc, &s->lzma.is_match[ in lzma_main()
743 s->lzma.state][pos_state])) { in lzma_main()
746 if (rc_bit(&s->rc, &s->lzma.is_rep[s->lzma.state])) in lzma_main()
751 if (!dict_repeat(&s->dict, &s->lzma.len, s->lzma.rep0)) in lzma_main()
774 s->lzma.state = STATE_LIT_LIT; in lzma_reset()
775 s->lzma.rep0 = 0; in lzma_reset()
776 s->lzma.rep1 = 0; in lzma_reset()
777 s->lzma.rep2 = 0; in lzma_reset()
778 s->lzma.rep3 = 0; in lzma_reset()
789 probs = s->lzma.is_match[0]; in lzma_reset()
806 s->lzma.pos_mask = 0; in lzma_props()
809 ++s->lzma.pos_mask; in lzma_props()
812 s->lzma.pos_mask = (1 << s->lzma.pos_mask) - 1; in lzma_props()
814 s->lzma.literal_pos_mask = 0; in lzma_props()
817 ++s->lzma.literal_pos_mask; in lzma_props()
820 s->lzma.lc = props; in lzma_props()
822 if (s->lzma.lc + s->lzma.literal_pos_mask > 4) in lzma_props()
825 s->lzma.literal_pos_mask = (1 << s->lzma.literal_pos_mask) - 1; in lzma_props()
1075 if (s->lzma2.compressed > 0 || s->lzma.len > 0 in xz_dec_lzma2_run()
1155 s->lzma.len = 0; in xz_dec_lzma2_reset()