Home
last modified time | relevance | path

Searched refs:cSize (Results 1 – 25 of 38) sorted by relevance

12

/freebsd-14.2/sys/contrib/zstd/examples/
H A Dsimple_decompression.c18 size_t cSize; in decompress() local
19 void* const cBuff = mallocAndLoadFile_orDie(fname, &cSize); in decompress()
26 unsigned long long const rSize = ZSTD_getFrameContentSize(cBuff, cSize); in decompress()
37 size_t const dSize = ZSTD_decompress(rBuff, rSize, cBuff, cSize); in decompress()
43 printf("%25s : %6u -> %7u \n", fname, (unsigned)cSize, (unsigned)rSize); in decompress()
H A Ddictionary_decompression.c32 size_t cSize; in decompress() local
33 void* const cBuff = mallocAndLoadFile_orDie(fname, &cSize); in decompress()
40 unsigned long long const rSize = ZSTD_getFrameContentSize(cBuff, cSize); in decompress()
51 unsigned const actualDictID = ZSTD_getDictID_fromFrame(cBuff, cSize); in decompress()
64 size_t const dSize = ZSTD_decompress_usingDDict(dctx, rBuff, rSize, cBuff, cSize, ddict); in decompress()
70 printf("%25s : %6u -> %7u \n", fname, (unsigned)cSize, (unsigned)rSize); in decompress()
H A Dsimple_compression.c28 size_t const cSize = ZSTD_compress(cBuff, cBuffSize, fBuff, fSize, 1); in compress_orDie() local
29 CHECK_ZSTD(cSize); in compress_orDie()
31 saveFile_orDie(oname, cBuff, cSize); in compress_orDie()
34 printf("%25s : %6u -> %7u - %s \n", fname, (unsigned)fSize, (unsigned)cSize, oname); in compress_orDie()
H A Ddictionary_compression.c45 size_t const cSize = ZSTD_compress_usingCDict(cctx, cBuff, cBuffSize, fBuff, fSize, cdict); in compress() local
46 CHECK_ZSTD(cSize); in compress()
48 saveFile_orDie(oname, cBuff, cSize); in compress()
51 printf("%25s : %6u -> %7u - %s \n", fname, (unsigned)fSize, (unsigned)cSize, oname); in compress()
H A Dmultiple_simple_compression.c74 …size_t const cSize = ZSTD_compressCCtx(ress.cctx, ress.cBuffer, ress.cBufferSize, ress.fBuffer, fS… in compressFile_orDie() local
75 CHECK_ZSTD(cSize); in compressFile_orDie()
77 saveFile_orDie(oname, ress.cBuffer, cSize); in compressFile_orDie()
80 printf("%25s : %6u -> %7u - %s \n", fname, (unsigned)fSize, (unsigned)cSize, oname); in compressFile_orDie()
/freebsd-14.2/sys/contrib/zstd/lib/compress/
H A Dzstd_compress_superblock.c82 op += cSize; in ZSTD_compressSubBlock_literal()
83 cLitSize += cSize; in ZSTD_compressSubBlock_literal()
84 if (cSize == 0 || ERR_isError(cSize)) { in ZSTD_compressSubBlock_literal()
99 DEBUGLOG(5, "ZSTD_compressSubBlock_literal (cSize=%zu)", cSize); in ZSTD_compressSubBlock_literal()
295 { size_t cSize = (op-ostart)-ZSTD_blockHeaderSize; in ZSTD_compressSubBlock() local
496 FORWARD_IF_ERROR(cSize, "ZSTD_compressSubBlock failed"); in ZSTD_compressSubBlock_multi()
497 if (cSize > 0 && cSize < decompressedSize) { in ZSTD_compressSubBlock_multi()
503 op += cSize; in ZSTD_compressSubBlock_multi()
533 FORWARD_IF_ERROR(cSize, "ZSTD_noCompressBlock failed"); in ZSTD_compressSubBlock_multi()
534 assert(cSize != 0); in ZSTD_compressSubBlock_multi()
[all …]
H A Dzstdmt_compress.c616 assert(ZSTD_isError(cSize)); (void)cSize; in ZSTDMT_serialState_ensureFinished()
738 assert(job->cSize == 0); in ZSTDMT_compressionJob()
741 if (ZSTD_isError(cSize)) JOB_ERROR(cSize); in ZSTDMT_compressionJob()
746 job->cSize += cSize; in ZSTDMT_compressionJob()
749 (U32)cSize, (U32)job->cSize); in ZSTDMT_compressionJob()
762 if (ZSTD_isError(cSize)) JOB_ERROR(cSize); in ZSTDMT_compressionJob()
784 job->cSize += lastCBlockSize; in ZSTDMT_compressionJob()
1459 { size_t cSize = mtctx->jobs[wJobID].cSize; /* shared */ in ZSTDMT_flushProduced() local
1463 if (ZSTD_isError(cSize)) { in ZSTDMT_flushProduced()
1468 return cSize; in ZSTDMT_flushProduced()
[all …]
H A Dhuf_compress.c125 op += cSize; in HUF_compressWeights()
1100 if (cSize == 0 || cSize > 65535) return 0; in HUF_compress4X_usingCTable_internal()
1102 op += cSize; in HUF_compress4X_usingCTable_internal()
1108 if (cSize == 0 || cSize > 65535) return 0; in HUF_compress4X_usingCTable_internal()
1110 op += cSize; in HUF_compress4X_usingCTable_internal()
1116 if (cSize == 0 || cSize > 65535) return 0; in HUF_compress4X_usingCTable_internal()
1118 op += cSize; in HUF_compress4X_usingCTable_internal()
1125 if (cSize == 0 || cSize > 65535) return 0; in HUF_compress4X_usingCTable_internal()
1126 op += cSize; in HUF_compress4X_usingCTable_internal()
1152 if (HUF_isError(cSize)) { return cSize; } in HUF_compressCTable_internal()
[all …]
H A Dzstd_compress.c2718 return cSize; in ZSTD_entropyCompressSeqStore()
3507 size_t cSize; in ZSTD_compressSeqStore_singleBlock() local
3562 return cSize; in ZSTD_compressSeqStore_singleBlock()
3729 return cSize; in ZSTD_compressBlock_splitBlock_internal()
3740 size_t cSize; in ZSTD_compressBlock_splitBlock() local
3759 return cSize; in ZSTD_compressBlock_splitBlock()
3772 size_t cSize; in ZSTD_compressBlock_internal() local
3813 if (!ZSTD_isError(cSize) && cSize > 1) { in ZSTD_compressBlock_internal()
3823 return cSize; in ZSTD_compressBlock_internal()
3898 return cSize; in ZSTD_compressBlock_targetCBlockSize()
[all …]
/freebsd-14.2/sys/contrib/openzfs/module/zstd/lib/compress/
H A Dhuf_compress.c99 op += cSize; in HUF_compressWeights()
570 if (cSize==0) return 0; in HUF_compress4X_usingCTable_internal()
571 assert(cSize <= 65535); in HUF_compress4X_usingCTable_internal()
573 op += cSize; in HUF_compress4X_usingCTable_internal()
579 if (cSize==0) return 0; in HUF_compress4X_usingCTable_internal()
580 assert(cSize <= 65535); in HUF_compress4X_usingCTable_internal()
582 op += cSize; in HUF_compress4X_usingCTable_internal()
591 op += cSize; in HUF_compress4X_usingCTable_internal()
599 op += cSize; in HUF_compress4X_usingCTable_internal()
620 if (HUF_isError(cSize)) { return cSize; } in HUF_compressCTable_internal()
[all …]
H A Dzstd_compress_superblock.c360 op += cSize; in ZSTD_compressSubBlock_literal()
361 cLitSize += cSize; in ZSTD_compressSubBlock_literal()
362 if (cSize == 0 || ERR_isError(cSize)) { in ZSTD_compressSubBlock_literal()
377 DEBUGLOG(5, "ZSTD_compressSubBlock_literal (cSize=%zu)", cSize); in ZSTD_compressSubBlock_literal()
572 { size_t cSize = (op-ostart)-ZSTD_blockHeaderSize; in ZSTD_compressSubBlock() local
772 FORWARD_IF_ERROR(cSize, "ZSTD_compressSubBlock failed"); in ZSTD_compressSubBlock_multi()
773 if (cSize > 0 && cSize < decompressedSize) { in ZSTD_compressSubBlock_multi()
779 op += cSize; in ZSTD_compressSubBlock_multi()
809 FORWARD_IF_ERROR(cSize, "ZSTD_noCompressBlock failed"); in ZSTD_compressSubBlock_multi()
810 assert(cSize != 0); in ZSTD_compressSubBlock_multi()
[all …]
H A Dzstd_compress.c2006 op += cSize; in ZSTD_compressSequences_internal()
2177 return cSize; in ZSTD_compressSequences()
2423 size_t cSize; in ZSTD_compressBlock_internal() local
2458 cSize = 1; in ZSTD_compressBlock_internal()
2463 if (!ZSTD_isError(cSize) && cSize > 1) { in ZSTD_compressBlock_internal()
2473 return cSize; in ZSTD_compressBlock_internal()
2516 if (cSize != 0 && cSize < maxCSize + ZSTD_blockHeaderSize) { in ZSTD_compressBlock_targetCBlockSize_body()
2536 size_t cSize = 0; in ZSTD_compressBlock_targetCBlockSize() local
2548 return cSize; in ZSTD_compressBlock_targetCBlockSize()
2616 { size_t cSize; in ZSTD_compress_frameChunk() local
[all …]
/freebsd-14.2/sys/contrib/zstd/zlibWrapper/examples/
H A Dzwrapbench.c143 size_t cSize; member
209 size_t cSize = 0; in BMK_benchMem() local
256 blockTable[blockNb].cSize = rSize; in BMK_benchMem()
300 blockTable[blockNb].cSize = outBuffer.pos; in BMK_benchMem()
341 blockTable[blockNb].cSize = def.total_out; in BMK_benchMem()
374 blockTable[blockNb].cSize = def.total_out; in BMK_benchMem()
385 cSize = 0; in BMK_benchMem()
386 … { U32 blockNb; for (blockNb=0; blockNb<nbBlocks; blockNb++) cSize += blockTable[blockNb].cSize; } in BMK_benchMem()
387 ratio = (double)srcSize / (double)cSize; in BMK_benchMem()
439 inBuffer.size = blockTable[blockNb].cSize; in BMK_benchMem()
[all …]
/freebsd-14.2/sys/contrib/zstd/programs/
H A Dbenchzstd.c154 size_t cSize; member
321 size_t cSize = 0; in BMK_benchMemAdvancedNoAlloc() local
351 cSize = srcSize; in BMK_benchMemAdvancedNoAlloc()
353 ratio = (double)srcSize / (double)cSize; in BMK_benchMemAdvancedNoAlloc()
380 benchResult.cSize = thisBlockSize; in BMK_benchMemAdvancedNoAlloc()
449 cSize = cResult.sumOfReturn; in BMK_benchMemAdvancedNoAlloc()
450 ratio = (double)srcSize / (double)cSize; in BMK_benchMemAdvancedNoAlloc()
453 benchResult.cSize = cSize; in BMK_benchMemAdvancedNoAlloc()
459 assert(cSize < UINT_MAX); in BMK_benchMemAdvancedNoAlloc()
462 (unsigned)srcSize, (unsigned)cSize, in BMK_benchMemAdvancedNoAlloc()
[all …]
H A Dbenchzstd.h51 size_t cSize; member
/freebsd-14.2/sys/contrib/zstd/lib/legacy/
H A Dzstd_v02.h49 size_t* cSize, unsigned long long* dBound);
H A Dzstd_v01.h49 size_t* cSize, unsigned long long* dBound);
H A Dzstd_v03.h49 size_t* cSize, unsigned long long* dBound);
H A Dzstd_v01.c1467 U32 cSize; in ZSTDv01_getcBlockSize() local
1472 cSize = in[2] + (in[1]<<8) + ((in[0] & 7)<<16); in ZSTDv01_getcBlockSize()
1475 bpPtr->origSize = (bpPtr->blockType == bt_rle) ? cSize : 0; in ZSTDv01_getcBlockSize()
1479 return cSize; in ZSTDv01_getcBlockSize()
2006 static void ZSTD_errorFrameSizeInfoLegacy(size_t* cSize, unsigned long long* dBound, size_t ret) in ZSTD_errorFrameSizeInfoLegacy() argument
2008 *cSize = ret; in ZSTD_errorFrameSizeInfoLegacy()
2022 ZSTD_errorFrameSizeInfoLegacy(cSize, dBound, ERROR(srcSize_wrong)); in ZSTDv01_findFrameSizeInfoLegacy()
2027 ZSTD_errorFrameSizeInfoLegacy(cSize, dBound, ERROR(prefix_unknown)); in ZSTDv01_findFrameSizeInfoLegacy()
2037 ZSTD_errorFrameSizeInfoLegacy(cSize, dBound, blockSize); in ZSTDv01_findFrameSizeInfoLegacy()
2044 ZSTD_errorFrameSizeInfoLegacy(cSize, dBound, ERROR(srcSize_wrong)); in ZSTDv01_findFrameSizeInfoLegacy()
[all …]
H A Dzstd_v04.h49 size_t* cSize, unsigned long long* dBound);
H A Dzstd_v05.h47 size_t* cSize, unsigned long long* dBound);
H A Dzstd_v06.h56 size_t* cSize, unsigned long long* dBound);
H A Dzstd_v07.h63 size_t* cSize, unsigned long long* dBound);
H A Dzstd_v03.c2462 U32 cSize; in ZSTD_getcBlockSize() local
2467 cSize = in[2] + (in[1]<<8) + ((in[0] & 7)<<16); in ZSTD_getcBlockSize()
2470 bpPtr->origSize = (bpPtr->blockType == bt_rle) ? cSize : 0; in ZSTD_getcBlockSize()
2474 return cSize; in ZSTD_getcBlockSize()
2970 MEM_STATIC void ZSTD_errorFrameSizeInfoLegacy(size_t* cSize, unsigned long long* dBound, size_t ret) in ZSTD_errorFrameSizeInfoLegacy() argument
2972 *cSize = ret; in ZSTD_errorFrameSizeInfoLegacy()
2986 ZSTD_errorFrameSizeInfoLegacy(cSize, dBound, ERROR(srcSize_wrong)); in ZSTDv03_findFrameSizeInfoLegacy()
2991 ZSTD_errorFrameSizeInfoLegacy(cSize, dBound, ERROR(prefix_unknown)); in ZSTDv03_findFrameSizeInfoLegacy()
3001 ZSTD_errorFrameSizeInfoLegacy(cSize, dBound, cBlockSize); in ZSTDv03_findFrameSizeInfoLegacy()
3008 ZSTD_errorFrameSizeInfoLegacy(cSize, dBound, ERROR(srcSize_wrong)); in ZSTDv03_findFrameSizeInfoLegacy()
[all …]
/freebsd-14.2/sys/contrib/zstd/zlibWrapper/
H A Dzstd_zlibwrapper.c1106 size_t const cSize = ZSTD_compress(dest, dstCapacity, in z_compress() local
1111 if (ZSTD_isError(cSize)) return Z_STREAM_ERROR; in z_compress()
1112 *destLen = cSize; in z_compress()
1126 size_t const cSize = ZSTD_compress(dest, dstCapacity, source, sourceLen, level); in z_compress2() local
1127 if (ZSTD_isError(cSize)) return Z_STREAM_ERROR; in z_compress2()
1128 *destLen = cSize; in z_compress2()

12