Lines Matching defs:price

160   UInt32 price;
684 UInt32 price = 0;
688 price += GET_PRICEa(probs[symbol >> 8], (symbol >> 7) & 1);
692 return price;
697 UInt32 price = 0;
703 price += GET_PRICEa(probs[offs + (matchByte & offs) + (symbol >> 8)], (symbol >> 7) & 1);
708 return price;
741 UInt32 price = 0;
745 price += GET_PRICEa(probs[symbol >> 1], symbol & 1);
748 return price;
753 UInt32 price = 0;
760 price += GET_PRICEa(probs[m], bit);
763 return price;
914 UInt32 price;
917 price = GET_PRICE_0(p->isRepG0[state]);
918 price += GET_PRICE_1(p->isRep0Long[state][posState]);
922 price = GET_PRICE_1(p->isRepG0[state]);
924 price += GET_PRICE_0(p->isRepG1[state]);
927 price += GET_PRICE_1(p->isRepG1[state]);
928 price += GET_PRICE(p->isRepG2[state], repIndex - 2);
931 return price;
1073 p->opt[1].price = GET_PRICE_0(p->isMatch[p->state][posState]) +
1087 if (shortRepPrice < p->opt[1].price)
1089 p->opt[1].price = shortRepPrice;
1107 p->opt[len--].price = kInfinityPrice;
1113 UInt32 price;
1116 price = repMatchPrice + GetPureRepPrice(p, i, p->state, posState);
1119 UInt32 curAndLenPrice = price + p->repLenEnc.prices[posState][repLen - 2];
1121 if (curAndLenPrice < opt->price)
1123 opt->price = curAndLenPrice;
1156 if (curAndLenPrice < opt->price)
1158 opt->price = curAndLenPrice;
1180 printf("\nprice[%4X] = %d", position - cur + i, p->opt[i].price);
1284 curPrice = curOpt->price;
1303 if (curAnd1Price < nextOpt->price)
1305 nextOpt->price = curAnd1Price;
1317 if (shortRepPrice <= nextOpt->price)
1319 nextOpt->price = shortRepPrice;
1362 p->opt[++lenEnd].price = kInfinityPrice;
1365 if (curAndLenPrice < opt->price)
1367 opt->price = curAndLenPrice;
1384 UInt32 price;
1390 p->opt[++lenEnd].price = kInfinityPrice;
1392 price = repMatchPrice + GetPureRepPrice(p, repIndex, state, posState);
1395 UInt32 curAndLenPrice = price + p->repLenEnc.prices[posState][lenTest - 2];
1397 if (curAndLenPrice < opt->price)
1399 opt->price = curAndLenPrice;
1425 price + p->repLenEnc.prices[posState][lenTest - 2] +
1441 p->opt[++lenEnd].price = kInfinityPrice;
1444 if (curAndLenPrice < opt->price)
1446 opt->price = curAndLenPrice;
1473 p->opt[++lenEnd].price = kInfinityPrice;
1491 if (curAndLenPrice < opt->price)
1493 opt->price = curAndLenPrice;
1530 p->opt[++lenEnd].price = kInfinityPrice;
1533 if (curAndLenPrice < opt->price)
1535 opt->price = curAndLenPrice;