Home
last modified time | relevance | path

Searched refs:litlen (Results 1 – 9 of 9) sorted by relevance

/external/zstd/lib/compress/
Dzstd_opt.c909 return sol.litlen + sol.mlen; in ZSTD_totalLen()
972 { U32 const litlen = (U32)(ip - anchor); in ZSTD_compressBlock_opt_generic() local
973 U32 const ll0 = !litlen; in ZSTD_compressBlock_opt_generic()
982 opt[0].litlen = litlen; in ZSTD_compressBlock_opt_generic()
988 opt[0].price = ZSTD_litLengthPrice(litlen, optStatePtr, optLevel); in ZSTD_compressBlock_opt_generic()
997 lastSequence.litlen = litlen; in ZSTD_compressBlock_opt_generic()
1024 opt[pos].litlen = litlen; in ZSTD_compressBlock_opt_generic()
1038 { U32 const litlen = (opt[cur-1].mlen == 0) ? opt[cur-1].litlen + 1 : 1; in ZSTD_compressBlock_opt_generic() local
1041 + ZSTD_litLengthPrice(litlen, optStatePtr, optLevel) in ZSTD_compressBlock_opt_generic()
1042 - ZSTD_litLengthPrice(litlen-1, optStatePtr, optLevel); in ZSTD_compressBlock_opt_generic()
[all …]
Dzstd_compress_internal.h110 U32 litlen; member
/external/zopfli/src/zopfli/
Dsqueeze.c114 typedef double CostModelFun(unsigned litlen, unsigned dist, void* context);
120 static double GetCostFixed(unsigned litlen, unsigned dist, void* unused) { in GetCostFixed() argument
123 if (litlen <= 143) return 8; in GetCostFixed()
127 int lbits = ZopfliGetLengthExtraBits(litlen); in GetCostFixed()
128 int lsym = ZopfliGetLengthSymbol(litlen); in GetCostFixed()
141 static double GetCostStat(unsigned litlen, unsigned dist, void* context) { in GetCostStat() argument
144 return stats->ll_symbols[litlen]; in GetCostStat()
146 int lsym = ZopfliGetLengthSymbol(litlen); in GetCostStat()
147 int lbits = ZopfliGetLengthExtraBits(litlen); in GetCostStat()
Ddeflate.c310 unsigned litlen = litlens[i]; in AddLZ77Data() local
312 assert(litlen < 256); in AddLZ77Data()
313 assert(ll_lengths[litlen] > 0); in AddLZ77Data()
314 AddHuffmanBits(ll_symbols[litlen], ll_lengths[litlen], bp, out, outsize); in AddLZ77Data()
317 unsigned lls = ZopfliGetLengthSymbol(litlen); in AddLZ77Data()
319 assert(litlen >= 3 && litlen <= 288); in AddLZ77Data()
323 AddBits(ZopfliGetLengthExtraBitsValue(litlen), in AddLZ77Data()
324 ZopfliGetLengthExtraBits(litlen), in AddLZ77Data()
330 testlength += litlen; in AddLZ77Data()
/external/lz4/lib/
Dlz4hc.c1220 int litlen; member
1224 LZ4_FORCE_INLINE int LZ4HC_literalsPrice(int const litlen) in LZ4HC_literalsPrice() argument
1226 int price = litlen; in LZ4HC_literalsPrice()
1227 assert(litlen >= 0); in LZ4HC_literalsPrice()
1228 if (litlen >= (int)RUN_MASK) in LZ4HC_literalsPrice()
1229 price += 1 + ((litlen-(int)RUN_MASK) / 255); in LZ4HC_literalsPrice()
1235 LZ4_FORCE_INLINE int LZ4HC_sequencePrice(int litlen, int mlen) in LZ4HC_sequencePrice() argument
1238 assert(litlen >= 0); in LZ4HC_sequencePrice()
1241 price += LZ4HC_literalsPrice(litlen); in LZ4HC_sequencePrice()
1334 opt[rPos].litlen = llen + rPos; in LZ4HC_compress_optimal()
[all …]
/external/toybox/lib/
Ddeflate.c236 int i, litlen, distlen, hufflen; in inflate() local
241 litlen = bitbuf_get(bb, 5)+257; // max 288 in inflate()
254 for (i = 0; i < litlen + distlen;) { in inflate()
268 if (i > litlen+distlen) error_exit("bad tree"); in inflate()
270 len2huff(lithuff = h2, bits, litlen); in inflate()
271 len2huff(disthuff = ((struct huff *)libbuf)+2, bits+litlen, distlen); in inflate()
/external/rust/crates/libz-sys/src/zlib/contrib/blast/
Dblast.c299 static const unsigned char litlen[] = { in decomp() local
317 construct(&litcode, litlen, sizeof(litlen)); in decomp()
/external/zstd/lib/legacy/
Dzstd_v06.c571 U32 litlen; member
Dzstd_v07.c2806 U32 litlen; member