Lines Matching defs:cost
490 U32 const cost = 1 + llAdd + ll + 2 + mlAdd;
493 DEBUGLOG(6, "pos:%7u -- literals:%4u, match:%4i, offset:%5u, cost:%4u + %5u",
496 cost, totalCost);
497 totalCost += cost;
1395 int const cost = LZ4HC_literalsPrice(llen + rPos);
1399 opt[rPos].price = cost;
1401 rPos, cost, opt[rPos].litlen);
1409 int const cost = LZ4HC_sequencePrice(llen, mlen);
1413 opt[mlen].price = cost;
1415 mlen, cost, mlen);
1437 /* not useful to search here if next position has same (or lower) cost */
1439 /* in some cases, next position has same cost, but cost rises sharply after, so a small match would still be beneficial */
1443 /* not useful to search here if next position has same (or lower) cost */