Lines Matching defs:price

30 	uint32_t price = 0;
33 price = rc_bittree_price(subcoder, 8, symbol);
45 price += rc_bit_price(subcoder[subcoder_index], bit);
53 return price;
61 // NOTE: Unlike the other price tables, length prices are updated
80 uint32_t price;
83 price = rc_bit_0_price(coder->is_rep0[state]);
84 price += rc_bit_1_price(coder->is_rep0_long[state][pos_state]);
86 price = rc_bit_1_price(coder->is_rep0[state]);
89 price += rc_bit_0_price(coder->is_rep1[state]);
91 price += rc_bit_1_price(coder->is_rep1[state]);
92 price += rc_bit_price(coder->is_rep2[state],
97 return price;
116 uint32_t price;
119 price = coder->dist_prices[dist_state][dist];
122 price = coder->dist_slot_prices[dist_state][dist_slot]
126 price += get_len_price(&coder->match_len_encoder, len, pos_state);
128 return price;
147 // For matches with distance >= FULL_DISTANCES, add the price
171 const uint32_t price = rc_bittree_reverse_price(
178 = price + coder->dist_slot_prices[
344 coder->opts[1].price = rc_bit_0_price(
362 if (short_rep_price < coder->opts[1].price) {
363 coder->opts[1].price = short_rep_price;
383 coder->opts[len].price = RC_INFINITY_PRICE;
392 const uint32_t price = rep_match_price + get_pure_rep_price(
396 const uint32_t cur_and_len_price = price
401 if (cur_and_len_price < coder->opts[rep_len].price) {
402 coder->opts[rep_len].price = cur_and_len_price;
426 if (cur_and_len_price < coder->opts[len].price) {
427 coder->opts[len].price = cur_and_len_price;
517 const uint32_t cur_price = coder->opts[cur].price;
531 if (cur_and_1_price < coder->opts[cur + 1].price) {
532 coder->opts[cur + 1].price = cur_and_1_price;
550 if (short_rep_price <= coder->opts[cur + 1].price) {
551 coder->opts[cur + 1].price = short_rep_price;
583 coder->opts[++len_end].price = RC_INFINITY_PRICE;
589 if (cur_and_len_price < coder->opts[offset].price) {
590 coder->opts[offset].price = cur_and_len_price;
611 coder->opts[++len_end].price = RC_INFINITY_PRICE;
614 const uint32_t price = rep_match_price + get_pure_rep_price(
618 const uint32_t cur_and_len_price = price
622 if (cur_and_len_price < coder->opts[cur + len_test].price) {
623 coder->opts[cur + len_test].price = cur_and_len_price;
651 const uint32_t cur_and_len_literal_price = price
671 coder->opts[++len_end].price = RC_INFINITY_PRICE;
677 if (cur_and_len_price < coder->opts[offset].price) {
678 coder->opts[offset].price = cur_and_len_price;
708 coder->opts[++len_end].price = RC_INFINITY_PRICE;
720 if (cur_and_len_price < coder->opts[cur + len_test].price) {
721 coder->opts[cur + len_test].price = cur_and_len_price;
770 coder->opts[++len_end].price = RC_INFINITY_PRICE;
776 if (cur_and_len_price < coder->opts[offset].price) {
777 coder->opts[offset].price = cur_and_len_price;
815 // Update the price tables. In LZMA SDK <= 4.60 (and possibly later)