HomeSort by: relevance | last modified time | path
    Searched defs:lhSize (Results 1 - 9 of 9) sorted by relevancy

  /src/external/bsd/zstd/dist/lib/compress/
zstd_compress_literals.c 140 size_t const lhSize = 3 + (srcSize >= 1 KB) + (srcSize >= 16 KB);
161 RETURN_ERROR_IF(dstCapacity < lhSize+1, dstSize_tooSmall, "not enough space for compression");
171 if (repeat == HUF_repeat_valid && lhSize == 3) singleStream = 1;
173 cLitSize = huf_compress(ostart+lhSize, dstCapacity-lhSize,
209 switch(lhSize)
230 default: /* not possible : lhSize is {3,4,5} */
233 DEBUGLOG(5, "Compressed literals: %u -> %u", (U32)srcSize, (U32)(lhSize+cLitSize));
234 return lhSize+cLitSize;
zstd_compress_superblock.c 49 size_t const lhSize = 3 + (litSize >= (1 KB - header)) + (litSize >= (16 KB - header));
52 BYTE* op = ostart + lhSize;
53 U32 const singleStream = lhSize == 3;
57 DEBUGLOG(5, "ZSTD_compressSubBlock_literal (litSize=%zu, lhSize=%zu, writeEntropy=%d)", litSize, lhSize, writeEntropy);
93 if (lhSize < (size_t)(3 + (cLitSize >= 1 KB) + (cLitSize >= 16 KB))) {
102 switch(lhSize)
120 default: /* not possible : lhSize is {3,4,5} */
  /src/external/bsd/zstd/dist/lib/decompress/
zstd_decompress_internal.h 182 size_t lhSize;
zstd_decompress_block.c 154 { size_t lhSize, litSize, litCSize;
168 lhSize = 3;
174 lhSize = 4;
180 lhSize = 5;
191 RETURN_ERROR_IF(litCSize + lhSize > srcSize, corruption_detected, "");
203 dctx->litBuffer, litSize, istart+lhSize, litCSize,
208 dctx->litBuffer, litSize, istart+lhSize, litCSize,
216 istart+lhSize, litCSize, dctx->workspace,
221 istart+lhSize, litCSize, dctx->workspace,
227 istart+lhSize, litCSize, dctx->workspace
    [all...]
  /src/external/bsd/zstd/dist/lib/dictBuilder/
zdict.c 808 { size_t const lhSize = FSE_writeNCount(dstPtr, maxDstSize, litLengthNCount, MaxLL, llLog);
809 if (FSE_isError(lhSize)) {
810 eSize = lhSize;
814 dstPtr += lhSize;
815 maxDstSize -= lhSize;
816 eSize += lhSize;
  /src/external/bsd/zstd/dist/tests/
fullbench.c 227 size_t lhSize, litSize, litCSize;
235 lhSize = 3;
241 lhSize = 4;
247 lhSize = 5;
253 RETURN_ERROR_IF(litCSize + lhSize > srcSize, corruption_detected, "");
257 istart+lhSize, litCSize,
263 istart+lhSize, litCSize,
  /src/external/bsd/zstd/dist/lib/legacy/
zstd_v05.c 2823 U32 lhSize = ((istart[0]) >> 4) & 3;
2825 switch(lhSize)
2827 case 0: case 1: default: /* note : default is impossible, since lhSize into [0..3] */
2829 lhSize=3;
2836 lhSize=4;
2842 lhSize=5;
2848 if (litCSize + lhSize > srcSize) return ERROR(corruption_detected);
2851 HUFv05_decompress1X2(dctx->litBuffer, litSize, istart+lhSize, litCSize) :
2852 HUFv05_decompress (dctx->litBuffer, litSize, istart+lhSize, litCSize) ))
2858 return litCSize + lhSize;
    [all...]
zstd_v06.c 3010 U32 lhSize = ((istart[0]) >> 4) & 3;
3011 if (srcSize < 5) return ERROR(corruption_detected); /* srcSize >= MIN_CBLOCK_SIZE == 3; here we need up to 5 for lhSize, + cSize (+nbSeq) */
3012 switch(lhSize)
3014 case 0: case 1: default: /* note : default is impossible, since lhSize into [0..3] */
3016 lhSize=3;
3023 lhSize=4;
3029 lhSize=5;
3035 if (litCSize + lhSize > srcSize) return ERROR(corruption_detected);
3038 HUFv06_decompress1X2(dctx->litBuffer, litSize, istart+lhSize, litCSize) :
3039 HUFv06_decompress (dctx->litBuffer, litSize, istart+lhSize, litCSize) )
    [all...]
zstd_v07.c 3240 U32 lhSize = (istart[0] >> 4) & 3;
3241 if (srcSize < 5) return ERROR(corruption_detected); /* srcSize >= MIN_CBLOCK_SIZE == 3; here we need up to 5 for lhSize, + cSize (+nbSeq) */
3242 switch(lhSize)
3244 case 0: case 1: default: /* note : default is impossible, since lhSize into [0..3] */
3246 lhSize=3;
3253 lhSize=4;
3259 lhSize=5;
3265 if (litCSize + lhSize > srcSize) return ERROR(corruption_detected);
3268 HUFv07_decompress1X2_DCtx(dctx->hufTable, dctx->litBuffer, litSize, istart+lhSize, litCSize) :
3269 HUFv07_decompress4X_hufOnly (dctx->hufTable, dctx->litBuffer, litSize, istart+lhSize, litCSize) )
    [all...]

Completed in 69 milliseconds