Lines Matching defs:price
1269 int price;
1275 /* price in bytes */
1278 int price = litlen;
1281 price += 1 + ((litlen-(int)RUN_MASK) / 255);
1282 return price;
1289 int price = 1 + 2 ; /* token + 16-bit offset */
1293 price += LZ4HC_literalsPrice(litlen);
1296 price += 1 + ((mlen-(int)(ML_MASK+MINMATCH)) / 255);
1298 return price;
1399 opt[rPos].price = cost;
1400 DEBUGLOG(7, "rPos:%3i => price:%3i (litlen=%i) -- initial setup",
1413 opt[mlen].price = cost;
1414 DEBUGLOG(7, "rPos:%3i => price:%3i (matchlen=%i) -- initial setup",
1423 opt[last_match_pos+addLit].price = opt[last_match_pos].price + LZ4HC_literalsPrice(addLit);
1424 DEBUGLOG(7, "rPos:%3i => price:%3i (litlen=%i) -- initial setup",
1425 last_match_pos+addLit, opt[last_match_pos+addLit].price, addLit);
1435 cur, opt[cur].price, opt[cur+1].price, cur+1);
1438 if ( (opt[cur+1].price <= opt[cur].price)
1440 && (opt[cur+MINMATCH].price < opt[cur].price + 3/*min seq price*/) )
1444 if (opt[cur+1].price <= opt[cur].price) continue;
1464 /* before match : set price with literals at beginning */
1468 int const price = opt[cur].price - LZ4HC_literalsPrice(baseLitlen) + LZ4HC_literalsPrice(baseLitlen+litlen);
1470 if (price < opt[pos].price) {
1474 opt[pos].price = price;
1475 DEBUGLOG(7, "rPos:%3i => price:%3i (litlen=%i)",
1476 pos, price, opt[pos].litlen);
1487 int price;
1489 DEBUGLOG(7, "testing price rPos %i (last_match_pos=%i)",
1493 price = ((cur > ll) ? opt[cur - ll].price : 0)
1497 price = opt[cur].price + LZ4HC_sequencePrice(0, ml);
1502 || price <= opt[pos].price - (int)favorDecSpeed) {
1503 DEBUGLOG(7, "rPos:%3i => price:%3i (matchlen=%i)",
1504 pos, price, ml);
1512 opt[pos].price = price;
1520 opt[last_match_pos+addLit].price = opt[last_match_pos].price + LZ4HC_literalsPrice(addLit);
1521 DEBUGLOG(7, "rPos:%3i => price:%3i (litlen=%i)", last_match_pos+addLit, opt[last_match_pos+addLit].price, addLit);