• Home
  • Raw
  • Download

Lines Matching full:price

1095     int price;  member
1101 /* price in bytes */
1104 int price = litlen; in LZ4HC_literalsPrice() local
1106 price += 1 + (litlen-RUN_MASK)/255; in LZ4HC_literalsPrice()
1107 return price; in LZ4HC_literalsPrice()
1114 int price = 1 + 2 ; /* token + 16-bit offset */ in LZ4HC_sequencePrice() local
1116 price += LZ4HC_literalsPrice(litlen); in LZ4HC_sequencePrice()
1119 price += 1 + (mlen-(ML_MASK+MINMATCH))/255; in LZ4HC_sequencePrice()
1121 return price; in LZ4HC_sequencePrice()
1210 opt[rPos].price = cost; in LZ4HC_compress_optimal()
1211 DEBUGLOG(7, "rPos:%3i => price:%3i (litlen=%i) -- initial setup", in LZ4HC_compress_optimal()
1224 opt[mlen].price = cost; in LZ4HC_compress_optimal()
1225 DEBUGLOG(7, "rPos:%3i => price:%3i (matchlen=%i) -- initial setup", in LZ4HC_compress_optimal()
1234 … opt[last_match_pos+addLit].price = opt[last_match_pos].price + LZ4HC_literalsPrice(addLit); in LZ4HC_compress_optimal()
1235 DEBUGLOG(7, "rPos:%3i => price:%3i (litlen=%i) -- initial setup", in LZ4HC_compress_optimal()
1236 last_match_pos+addLit, opt[last_match_pos+addLit].price, addLit); in LZ4HC_compress_optimal()
1246 cur, opt[cur].price, opt[cur+1].price, cur+1); in LZ4HC_compress_optimal()
1249 if ( (opt[cur+1].price <= opt[cur].price) in LZ4HC_compress_optimal()
1251 && (opt[cur+MINMATCH].price < opt[cur].price + 3/*min seq price*/) ) in LZ4HC_compress_optimal()
1255 if (opt[cur+1].price <= opt[cur].price) continue; in LZ4HC_compress_optimal()
1275 /* before match : set price with literals at beginning */ in LZ4HC_compress_optimal()
1279 …int const price = opt[cur].price - LZ4HC_literalsPrice(baseLitlen) + LZ4HC_literalsPrice(baseLitle… in LZ4HC_compress_optimal() local
1281 if (price < opt[pos].price) { in LZ4HC_compress_optimal()
1285 opt[pos].price = price; in LZ4HC_compress_optimal()
1286 DEBUGLOG(7, "rPos:%3i => price:%3i (litlen=%i)", in LZ4HC_compress_optimal()
1287 pos, price, opt[pos].litlen); in LZ4HC_compress_optimal()
1298 int price; in LZ4HC_compress_optimal() local
1300 DEBUGLOG(7, "testing price rPos %i (last_match_pos=%i)", in LZ4HC_compress_optimal()
1304 price = ((cur > ll) ? opt[cur - ll].price : 0) in LZ4HC_compress_optimal()
1308 price = opt[cur].price + LZ4HC_sequencePrice(0, ml); in LZ4HC_compress_optimal()
1313 || price <= opt[pos].price - (int)favorDecSpeed) { in LZ4HC_compress_optimal()
1314 DEBUGLOG(7, "rPos:%3i => price:%3i (matchlen=%i)", in LZ4HC_compress_optimal()
1315 pos, price, ml); in LZ4HC_compress_optimal()
1323 opt[pos].price = price; in LZ4HC_compress_optimal()
1331 … opt[last_match_pos+addLit].price = opt[last_match_pos].price + LZ4HC_literalsPrice(addLit); in LZ4HC_compress_optimal()
1332 …DEBUGLOG(7, "rPos:%3i => price:%3i (litlen=%i)", last_match_pos+addLit, opt[last_match_pos+addLit]… in LZ4HC_compress_optimal()