Lines Matching refs:price

143   UInt32 price;
658 UInt32 price = 0;
662 price += GET_PRICEa(probs[symbol >> 8], (symbol >> 7) & 1);
666 return price;
671 UInt32 price = 0;
677 price += GET_PRICEa(probs[offs + (matchByte & offs) + (symbol >> 8)], (symbol >> 7) & 1);
682 return price;
715 UInt32 price = 0;
719 price += GET_PRICEa(probs[symbol >> 1], symbol & 1);
722 return price;
727 UInt32 price = 0;
734 price += GET_PRICEa(probs[m], bit);
737 return price;
885 UInt32 price;
888 price = GET_PRICE_0(p->isRepG0[state]);
889 price += GET_PRICE_1(p->isRep0Long[state][posState]);
893 price = GET_PRICE_1(p->isRepG0[state]);
895 price += GET_PRICE_0(p->isRepG1[state]);
898 price += GET_PRICE_1(p->isRepG1[state]);
899 price += GET_PRICE(p->isRepG2[state], repIndex - 2);
902 return price;
1033 p->opt[1].price = GET_PRICE_0(p->isMatch[p->state][posState]) +
1047 if (shortRepPrice < p->opt[1].price)
1049 p->opt[1].price = shortRepPrice;
1067 p->opt[len--].price = kInfinityPrice;
1073 UInt32 price;
1076 price = repMatchPrice + GetPureRepPrice(p, i, p->state, posState);
1079 UInt32 curAndLenPrice = price + p->repLenEnc.prices[posState][repLen - 2];
1081 if (curAndLenPrice < opt->price)
1083 opt->price = curAndLenPrice;
1116 if (curAndLenPrice < opt->price)
1118 opt->price = curAndLenPrice;
1140 printf("\nprice[%4X] = %d", position - cur + i, p->opt[i].price);
1235 curPrice = curOpt->price;
1254 if (curAnd1Price < nextOpt->price)
1256 nextOpt->price = curAnd1Price;
1268 if (shortRepPrice <= nextOpt->price)
1270 nextOpt->price = shortRepPrice;
1312 p->opt[++lenEnd].price = kInfinityPrice;
1315 if (curAndLenPrice < opt->price)
1317 opt->price = curAndLenPrice;
1334 UInt32 price;
1340 p->opt[++lenEnd].price = kInfinityPrice;
1342 price = repMatchPrice + GetPureRepPrice(p, repIndex, state, posState);
1345 UInt32 curAndLenPrice = price + p->repLenEnc.prices[posState][lenTest - 2];
1347 if (curAndLenPrice < opt->price)
1349 opt->price = curAndLenPrice;
1375 price + p->repLenEnc.prices[posState][lenTest - 2] +
1391 p->opt[++lenEnd].price = kInfinityPrice;
1394 if (curAndLenPrice < opt->price)
1396 opt->price = curAndLenPrice;
1423 p->opt[++lenEnd].price = kInfinityPrice;
1441 if (curAndLenPrice < opt->price)
1443 opt->price = curAndLenPrice;
1480 p->opt[++lenEnd].price = kInfinityPrice;
1483 if (curAndLenPrice < opt->price)
1485 opt->price = curAndLenPrice;