Searched refs:pos_state (Results 1 - 4 of 4) sorted by relevance

/freebsd-10.2-release/contrib/xz/src/liblzma/lzma/
H A Dlzma_encoder.c78 length_update_prices(lzma_length_encoder *lc, const uint32_t pos_state) argument
81 lc->counters[pos_state] = table_size;
87 uint32_t *const prices = lc->prices[pos_state];
91 prices[i] = a0 + rc_bittree_price(lc->low[pos_state],
95 prices[i] = b0 + rc_bittree_price(lc->mid[pos_state],
108 const uint32_t pos_state, uint32_t len, const bool fast_mode)
115 rc_bittree(rc, lc->low[pos_state], LEN_LOW_BITS, len);
122 rc_bittree(rc, lc->mid[pos_state], LEN_MID_BITS, len);
133 if (--lc->counters[pos_state] == 0)
134 length_update_prices(lc, pos_state);
107 length(lzma_range_encoder *rc, lzma_length_encoder *lc, const uint32_t pos_state, uint32_t len, const bool fast_mode) argument
143 match(lzma_coder *coder, const uint32_t pos_state, const uint32_t distance, const uint32_t len) argument
190 rep_match(lzma_coder *coder, const uint32_t pos_state, const uint32_t rep, const uint32_t len) argument
237 const uint32_t pos_state = position & coder->pos_mask; local
298 const uint32_t pos_state = position & coder->pos_mask; local
[all...]
H A Dlzma_decoder.c34 #define len_decode(target, ld, pos_state, seq) \
39 probs = ld.low[pos_state];\
47 probs = ld.mid[pos_state]; \
111 #define len_decode(target, ld, pos_state, seq) \
117 rc_bit_case(ld.low[pos_state][symbol], , , seq ## _LOW0); \
118 rc_bit_case(ld.low[pos_state][symbol], , , seq ## _LOW1); \
119 rc_bit_case(ld.low[pos_state][symbol], , , seq ## _LOW2); \
126 rc_bit_case(ld.mid[pos_state][symbol], , , \
128 rc_bit_case(ld.mid[pos_state][symbol], , , \
130 rc_bit_case(ld.mid[pos_state][symbo
330 uint32_t pos_state = dict.pos & pos_mask; local
[all...]
H A Dlzma_encoder_optimum_normal.c58 const uint32_t len, const uint32_t pos_state)
62 return lencoder->prices[pos_state][len - MATCH_LEN_MIN];
68 const lzma_lzma_state state, const uint32_t pos_state)
71 + rc_bit_0_price(coder->is_rep0_long[state][pos_state]);
77 const lzma_lzma_state state, uint32_t pos_state)
83 price += rc_bit_1_price(coder->is_rep0_long[state][pos_state]);
103 const uint32_t pos_state)
105 return get_len_price(&coder->rep_len_encoder, len, pos_state)
106 + get_pure_rep_price(coder, rep_index, state, pos_state);
112 const uint32_t len, const uint32_t pos_state)
57 get_len_price(const lzma_length_encoder *const lencoder, const uint32_t len, const uint32_t pos_state) argument
67 get_short_rep_price(const lzma_coder *const coder, const lzma_lzma_state state, const uint32_t pos_state) argument
76 get_pure_rep_price(const lzma_coder *const coder, const uint32_t rep_index, const lzma_lzma_state state, uint32_t pos_state) argument
101 get_rep_price(const lzma_coder *const coder, const uint32_t rep_index, const uint32_t len, const lzma_lzma_state state, const uint32_t pos_state) argument
111 get_pos_len_price(const lzma_coder *const coder, const uint32_t pos, const uint32_t len, const uint32_t pos_state) argument
348 const uint32_t pos_state = position & coder->pos_mask; local
529 const uint32_t pos_state = position & coder->pos_mask; local
[all...]
/freebsd-10.2-release/sys/contrib/xz-embedded/linux/lib/xz/
H A Dxz_dec_lzma2.c620 uint32_t pos_state)
626 probs = l->low[pos_state];
631 probs = l->mid[pos_state];
646 static void lzma_match(struct xz_dec_lzma2 *s, uint32_t pos_state) argument
658 lzma_len(s, &s->lzma.match_len_dec, pos_state);
688 static void lzma_rep_match(struct xz_dec_lzma2 *s, uint32_t pos_state) argument
694 s->lzma.state][pos_state])) {
718 lzma_len(s, &s->lzma.rep_len_dec, pos_state);
724 uint32_t pos_state; local
738 pos_state
619 lzma_len(struct xz_dec_lzma2 *s, struct lzma_len_dec *l, uint32_t pos_state) argument
[all...]

Completed in 55 milliseconds