Lines Matching refs:lzma
1428 struct lzma_dec lzma; member
1723 uint32_t low = prev_byte >> (8 - s->lzma.lc); in lzma_literal_probs()
1724 uint32_t high = (s->dict.pos & s->lzma.literal_pos_mask) << s->lzma.lc; in lzma_literal_probs()
1725 return s->lzma.literal[low + high]; in lzma_literal_probs()
1740 if (lzma_state_is_literal(s->lzma.state)) { in lzma_literal()
1744 match_byte = dict_get(&s->dict, s->lzma.rep0) << 1; in lzma_literal()
1763 lzma_state_literal(&s->lzma.state); in lzma_literal()
1776 s->lzma.len = MATCH_LEN_MIN; in lzma_len()
1781 s->lzma.len = MATCH_LEN_MIN + LEN_LOW_SYMBOLS; in lzma_len()
1785 s->lzma.len = MATCH_LEN_MIN + LEN_LOW_SYMBOLS in lzma_len()
1790 s->lzma.len += rc_bittree(&s->rc, probs, limit) - limit; in lzma_len()
1800 lzma_state_match(&s->lzma.state); in lzma_match()
1802 s->lzma.rep3 = s->lzma.rep2; in lzma_match()
1803 s->lzma.rep2 = s->lzma.rep1; in lzma_match()
1804 s->lzma.rep1 = s->lzma.rep0; in lzma_match()
1806 lzma_len(s, &s->lzma.match_len_dec, pos_state); in lzma_match()
1808 probs = s->lzma.dist_slot[lzma_get_dist_state(s->lzma.len)]; in lzma_match()
1812 s->lzma.rep0 = dist_slot; in lzma_match()
1815 s->lzma.rep0 = 2 + (dist_slot & 1); in lzma_match()
1818 s->lzma.rep0 <<= limit; in lzma_match()
1819 probs = s->lzma.dist_special + s->lzma.rep0 in lzma_match()
1822 &s->lzma.rep0, limit); in lzma_match()
1824 rc_direct(&s->rc, &s->lzma.rep0, limit - ALIGN_BITS); in lzma_match()
1825 s->lzma.rep0 <<= ALIGN_BITS; in lzma_match()
1826 rc_bittree_reverse(&s->rc, s->lzma.dist_align, in lzma_match()
1827 &s->lzma.rep0, ALIGN_BITS); in lzma_match()
1840 if (!rc_bit(&s->rc, &s->lzma.is_rep0[s->lzma.state])) { in lzma_rep_match()
1841 if (!rc_bit(&s->rc, &s->lzma.is_rep0_long[ in lzma_rep_match()
1842 s->lzma.state][pos_state])) { in lzma_rep_match()
1843 lzma_state_short_rep(&s->lzma.state); in lzma_rep_match()
1844 s->lzma.len = 1; in lzma_rep_match()
1848 if (!rc_bit(&s->rc, &s->lzma.is_rep1[s->lzma.state])) { in lzma_rep_match()
1849 tmp = s->lzma.rep1; in lzma_rep_match()
1851 if (!rc_bit(&s->rc, &s->lzma.is_rep2[s->lzma.state])) { in lzma_rep_match()
1852 tmp = s->lzma.rep2; in lzma_rep_match()
1854 tmp = s->lzma.rep3; in lzma_rep_match()
1855 s->lzma.rep3 = s->lzma.rep2; in lzma_rep_match()
1858 s->lzma.rep2 = s->lzma.rep1; in lzma_rep_match()
1861 s->lzma.rep1 = s->lzma.rep0; in lzma_rep_match()
1862 s->lzma.rep0 = tmp; in lzma_rep_match()
1865 lzma_state_long_rep(&s->lzma.state); in lzma_rep_match()
1866 lzma_len(s, &s->lzma.rep_len_dec, pos_state); in lzma_rep_match()
1878 if (dict_has_space(&s->dict) && s->lzma.len > 0) in lzma_main()
1879 dict_repeat(&s->dict, &s->lzma.len, s->lzma.rep0); in lzma_main()
1886 pos_state = s->dict.pos & s->lzma.pos_mask; in lzma_main()
1888 if (!rc_bit(&s->rc, &s->lzma.is_match[ in lzma_main()
1889 s->lzma.state][pos_state])) { in lzma_main()
1892 if (rc_bit(&s->rc, &s->lzma.is_rep[s->lzma.state])) in lzma_main()
1897 if (!dict_repeat(&s->dict, &s->lzma.len, s->lzma.rep0)) in lzma_main()
1920 s->lzma.state = STATE_LIT_LIT; in lzma_reset()
1921 s->lzma.rep0 = 0; in lzma_reset()
1922 s->lzma.rep1 = 0; in lzma_reset()
1923 s->lzma.rep2 = 0; in lzma_reset()
1924 s->lzma.rep3 = 0; in lzma_reset()
1935 probs = s->lzma.is_match[0]; in lzma_reset()
1952 s->lzma.pos_mask = 0; in lzma_props()
1955 ++s->lzma.pos_mask; in lzma_props()
1958 s->lzma.pos_mask = (1 << s->lzma.pos_mask) - 1; in lzma_props()
1960 s->lzma.literal_pos_mask = 0; in lzma_props()
1963 ++s->lzma.literal_pos_mask; in lzma_props()
1966 s->lzma.lc = props; in lzma_props()
1968 if (s->lzma.lc + s->lzma.literal_pos_mask > 4) in lzma_props()
1971 s->lzma.literal_pos_mask = (1 << s->lzma.literal_pos_mask) - 1; in lzma_props()
2222 if (s->lzma2.compressed > 0 || s->lzma.len > 0 in xz_dec_lzma2_run()
2287 s->lzma.len = 0; in xz_dec_lzma2_reset()