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

/freebsd-11-stable/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_lzma1_encoder *coder, const uint32_t pos_state, const uint32_t distance, const uint32_t len) argument
190 rep_match(lzma_lzma1_encoder *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.c40 #define len_decode(target, ld, pos_state, seq) \
45 probs = ld.low[pos_state];\
53 probs = ld.mid[pos_state]; \
117 #define len_decode(target, ld, pos_state, seq) \
123 rc_bit_case(ld.low[pos_state][symbol], , , seq ## _LOW0); \
124 rc_bit_case(ld.low[pos_state][symbol], , , seq ## _LOW1); \
125 rc_bit_case(ld.low[pos_state][symbol], , , seq ## _LOW2); \
132 rc_bit_case(ld.mid[pos_state][symbol], , , \
134 rc_bit_case(ld.mid[pos_state][symbol], , , \
136 rc_bit_case(ld.mid[pos_state][symbo
342 uint32_t pos_state = dict.pos & pos_mask; local
[all...]
H A Dlzma_encoder_optimum_normal.c59 const uint32_t len, const uint32_t pos_state)
63 return lencoder->prices[pos_state][len - MATCH_LEN_MIN];
69 const lzma_lzma_state state, const uint32_t pos_state)
72 + rc_bit_0_price(coder->is_rep0_long[state][pos_state]);
78 const lzma_lzma_state state, uint32_t pos_state)
84 price += rc_bit_1_price(coder->is_rep0_long[state][pos_state]);
104 const uint32_t pos_state)
106 return get_len_price(&coder->rep_len_encoder, len, pos_state)
107 + get_pure_rep_price(coder, rep_index, state, pos_state);
113 const uint32_t len, const uint32_t pos_state)
58 get_len_price(const lzma_length_encoder *const lencoder, const uint32_t len, const uint32_t pos_state) argument
68 get_short_rep_price(const lzma_lzma1_encoder *const coder, const lzma_lzma_state state, const uint32_t pos_state) argument
77 get_pure_rep_price(const lzma_lzma1_encoder *const coder, const uint32_t rep_index, const lzma_lzma_state state, uint32_t pos_state) argument
102 get_rep_price(const lzma_lzma1_encoder *const coder, const uint32_t rep_index, const uint32_t len, const lzma_lzma_state state, const uint32_t pos_state) argument
112 get_dist_len_price(const lzma_lzma1_encoder *const coder, const uint32_t dist, const uint32_t len, const uint32_t pos_state) argument
342 const uint32_t pos_state = position & coder->pos_mask; local
522 const uint32_t pos_state = position & coder->pos_mask; local
[all...]
/freebsd-11-stable/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...]
/freebsd-11-stable/usr.bin/gzip/
H A Dunlz.c268 int pos_state)
271 return lz_rd_decode_tree(rd, lm->bm_low[pos_state], LOW_BITS);
275 lz_rd_decode_tree(rd, lm->bm_mid[pos_state], MID_BITS);
440 const int pos_state = lz_get_data_position(lz) & POS_STATE_MASK; local
442 if (lz_rd_decode_bit(rd, &bm_match[state][pos_state]) == 0) {
463 &bm_len[state][pos_state]) == 0)
491 lz_rd_decode_len(rd, &rep_len_model, pos_state);
495 lz_rd_decode_len(rd, &match_len_model, pos_state);
267 lz_rd_decode_len(struct lz_range_decoder *rd, struct lz_len_model *lm, int pos_state) argument

Completed in 89 milliseconds