Home
last modified time | relevance | path

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

12

/freebsd/sys/contrib/zstd/lib/compress/
H A Dzstd_compress_superblock.c79 …const size_t cSize = singleStream ? HUF_compress1X_usingCTable(op, (size_t)(oend-op), literals, li… in ZSTD_compressSubBlock_literal() local
81 op += cSize; in ZSTD_compressSubBlock_literal()
82 cLitSize += cSize; in ZSTD_compressSubBlock_literal()
83 if (cSize == 0 || ERR_isError(cSize)) { in ZSTD_compressSubBlock_literal()
84 DEBUGLOG(5, "Failed to write entropy tables %s", ZSTD_getErrorName(cSize)); in ZSTD_compressSubBlock_literal()
98 DEBUGLOG(5, "ZSTD_compressSubBlock_literal (cSize=%zu)", cSize); in ZSTD_compressSubBlock_literal()
300 { size_t cSize = (size_t)(op-ostart) - ZSTD_blockHeaderSize; in ZSTD_compressSubBlock() local
301 U32 const cBlockHeader24 = lastBlock + (((U32)bt_compressed)<<1) + (U32)(cSize << 3); in ZSTD_compressSubBlock()
550 size_t const cSize = ZSTD_compressSubBlock(&nextCBlock->entropy, entropyMetadata, in ZSTD_compressSubBlock_multi() local
559 FORWARD_IF_ERROR(cSize, "ZSTD_compressSubBlock failed"); in ZSTD_compressSubBlock_multi()
[all …]
H A Dzstdmt_compress.c637 unsigned jobID, size_t cSize) in ZSTDMT_serialState_ensureFinished() argument
641 assert(ZSTD_isError(cSize)); (void)cSize; in ZSTDMT_serialState_ensureFinished()
664 …size_t cSize; /* SHARED - set0 by mtctx, then modified by worker AND read by … member
687 job->cSize = e; \
770 assert(job->cSize == 0); in ZSTDMT_compressionJob()
772 size_t const cSize = ZSTD_compressContinue_public(cctx, op, oend-op, ip, chunkSize); in ZSTDMT_compressionJob() local
773 if (ZSTD_isError(cSize)) JOB_ERROR(cSize); in ZSTDMT_compressionJob()
775 op += cSize; assert(op < oend); in ZSTDMT_compressionJob()
778 job->cSize += cSize; in ZSTDMT_compressionJob()
781 (U32)cSize, (U32)job->cSize); in ZSTDMT_compressionJob()
[all …]
H A Dhuf_compress.c180 …{ CHECK_V_F(cSize, FSE_compress_usingCTable(op, (size_t)(oend - op), weightTable, wtSize, wksp->… in HUF_compressWeights()
181 if (cSize == 0) return 0; /* not enough space for compressed data */ in HUF_compressWeights()
182 op += cSize; in HUF_compressWeights()
1184 …{ CHECK_V_F(cSize, HUF_compress1X_usingCTable_internal(op, (size_t)(oend-op), ip, segmentSize, C… in HUF_compress4X_usingCTable_internal()
1185 if (cSize == 0 || cSize > 65535) return 0; in HUF_compress4X_usingCTable_internal()
1186 MEM_writeLE16(ostart, (U16)cSize); in HUF_compress4X_usingCTable_internal()
1187 op += cSize; in HUF_compress4X_usingCTable_internal()
1192 …{ CHECK_V_F(cSize, HUF_compress1X_usingCTable_internal(op, (size_t)(oend-op), ip, segmentSize, C… in HUF_compress4X_usingCTable_internal()
1193 if (cSize == 0 || cSize > 65535) return 0; in HUF_compress4X_usingCTable_internal()
1194 MEM_writeLE16(ostart+2, (U16)cSize); in HUF_compress4X_usingCTable_internal()
[all …]
H A Dzstd_compress.c2926 size_t const cSize = ZSTD_compressLiterals( in ZSTD_entropyCompressSeqStore_internal() local
2934 FORWARD_IF_ERROR(cSize, "ZSTD_compressLiterals failed"); in ZSTD_entropyCompressSeqStore_internal()
2935 assert(cSize <= dstCapacity); in ZSTD_entropyCompressSeqStore_internal()
2936 op += cSize; in ZSTD_entropyCompressSeqStore_internal()
3017 size_t const cSize = ZSTD_entropyCompressSeqStore_internal( in ZSTD_entropyCompressSeqStore_wExtLitBuffer() local
3022 if (cSize == 0) return 0; in ZSTD_entropyCompressSeqStore_wExtLitBuffer()
3026 if ((cSize == ERROR(dstSize_tooSmall)) & (blockSize <= dstCapacity)) { in ZSTD_entropyCompressSeqStore_wExtLitBuffer()
3030 FORWARD_IF_ERROR(cSize, "ZSTD_entropyCompressSeqStore_internal failed"); in ZSTD_entropyCompressSeqStore_wExtLitBuffer()
3034 if (cSize >= maxCSize) return 0; /* block not compressed */ in ZSTD_entropyCompressSeqStore_wExtLitBuffer()
3036 DEBUGLOG(5, "ZSTD_entropyCompressSeqStore() cSize: %zu", cSize); in ZSTD_entropyCompressSeqStore_wExtLitBuffer()
[all …]
/freebsd/sys/contrib/openzfs/module/zstd/lib/compress/
H A Dzstd_compress_superblock.c80 …const size_t cSize = singleStream ? HUF_compress1X_usingCTable(op, (size_t)(oend-op), literals, li… in ZSTD_compressSubBlock_literal() local
82 op += cSize; in ZSTD_compressSubBlock_literal()
83 cLitSize += cSize; in ZSTD_compressSubBlock_literal()
84 if (cSize == 0 || ERR_isError(cSize)) { in ZSTD_compressSubBlock_literal()
85 DEBUGLOG(5, "Failed to write entropy tables %s", ZSTD_getErrorName(cSize)); in ZSTD_compressSubBlock_literal()
99 DEBUGLOG(5, "ZSTD_compressSubBlock_literal (cSize=%zu)", cSize); in ZSTD_compressSubBlock_literal()
301 { size_t cSize = (size_t)(op-ostart) - ZSTD_blockHeaderSize; in ZSTD_compressSubBlock() local
302 U32 const cBlockHeader24 = lastBlock + (((U32)bt_compressed)<<1) + (U32)(cSize << 3); in ZSTD_compressSubBlock()
551 size_t const cSize = ZSTD_compressSubBlock(&nextCBlock->entropy, entropyMetadata, in ZSTD_compressSubBlock_multi() local
560 FORWARD_IF_ERROR(cSize, "ZSTD_compressSubBlock failed"); in ZSTD_compressSubBlock_multi()
[all …]
H A Dhuf_compress.c181 …{ CHECK_V_F(cSize, FSE_compress_usingCTable(op, (size_t)(oend - op), weightTable, wtSize, wksp->… in HUF_compressWeights()
182 if (cSize == 0) return 0; /* not enough space for compressed data */ in HUF_compressWeights()
183 op += cSize; in HUF_compressWeights()
1185 …{ CHECK_V_F(cSize, HUF_compress1X_usingCTable_internal(op, (size_t)(oend-op), ip, segmentSize, C… in HUF_compress4X_usingCTable_internal()
1186 if (cSize == 0 || cSize > 65535) return 0; in HUF_compress4X_usingCTable_internal()
1187 MEM_writeLE16(ostart, (U16)cSize); in HUF_compress4X_usingCTable_internal()
1188 op += cSize; in HUF_compress4X_usingCTable_internal()
1193 …{ CHECK_V_F(cSize, HUF_compress1X_usingCTable_internal(op, (size_t)(oend-op), ip, segmentSize, C… in HUF_compress4X_usingCTable_internal()
1194 if (cSize == 0 || cSize > 65535) return 0; in HUF_compress4X_usingCTable_internal()
1195 MEM_writeLE16(ostart+2, (U16)cSize); in HUF_compress4X_usingCTable_internal()
[all …]
H A Dzstd_compress.c2927 size_t const cSize = ZSTD_compressLiterals( in ZSTD_entropyCompressSeqStore_internal() local
2935 FORWARD_IF_ERROR(cSize, "ZSTD_compressLiterals failed"); in ZSTD_entropyCompressSeqStore_internal()
2936 assert(cSize <= dstCapacity); in ZSTD_entropyCompressSeqStore_internal()
2937 op += cSize; in ZSTD_entropyCompressSeqStore_internal()
3018 size_t const cSize = ZSTD_entropyCompressSeqStore_internal( in ZSTD_entropyCompressSeqStore_wExtLitBuffer() local
3023 if (cSize == 0) return 0; in ZSTD_entropyCompressSeqStore_wExtLitBuffer()
3027 if ((cSize == ERROR(dstSize_tooSmall)) & (blockSize <= dstCapacity)) { in ZSTD_entropyCompressSeqStore_wExtLitBuffer()
3031 FORWARD_IF_ERROR(cSize, "ZSTD_entropyCompressSeqStore_internal failed"); in ZSTD_entropyCompressSeqStore_wExtLitBuffer()
3035 if (cSize >= maxCSize) return 0; /* block not compressed */ in ZSTD_entropyCompressSeqStore_wExtLitBuffer()
3037 DEBUGLOG(5, "ZSTD_entropyCompressSeqStore() cSize: %zu", cSize); in ZSTD_entropyCompressSeqStore_wExtLitBuffer()
[all …]
/freebsd/sys/contrib/zstd/programs/
H A Dbenchzstd.c235 size_t cSize; member
445 size_t cSize = 0; in BMK_benchMemAdvancedNoAlloc() local
497 cSize = srcSize; in BMK_benchMemAdvancedNoAlloc()
499 ratio = (double)srcSize / (double)cSize; in BMK_benchMemAdvancedNoAlloc()
534 benchResult.cSize = thisBlockSize; in BMK_benchMemAdvancedNoAlloc()
622 cSize = cResult.sumOfReturn; in BMK_benchMemAdvancedNoAlloc()
623 ratio = (double)srcSize / (double)cSize; in BMK_benchMemAdvancedNoAlloc()
629 benchResult.cSize = cSize; in BMK_benchMemAdvancedNoAlloc()
637 assert(cSize < UINT_MAX); in BMK_benchMemAdvancedNoAlloc()
644 (unsigned)cSize, in BMK_benchMemAdvancedNoAlloc()
[all …]
H A Dbenchzstd.h46 size_t cSize; member
/freebsd/sys/contrib/zstd/lib/legacy/
H A Dzstd_v01.c1429 U32 cSize; in ZSTDv01_getcBlockSize() local
1434 cSize = in[2] + (in[1]<<8) + ((in[0] & 7)<<16); in ZSTDv01_getcBlockSize()
1437 bpPtr->origSize = (bpPtr->blockType == bt_rle) ? cSize : 0; in ZSTDv01_getcBlockSize()
1441 return cSize; in ZSTDv01_getcBlockSize()
1974 static void ZSTD_errorFrameSizeInfoLegacy(size_t* cSize, unsigned long long* dBound, size_t ret) in ZSTD_errorFrameSizeInfoLegacy() argument
1976 *cSize = ret; in ZSTD_errorFrameSizeInfoLegacy()
1980 void ZSTDv01_findFrameSizeInfoLegacy(const void *src, size_t srcSize, size_t* cSize, unsigned long … in ZSTDv01_findFrameSizeInfoLegacy() argument
1990 ZSTD_errorFrameSizeInfoLegacy(cSize, dBound, ERROR(srcSize_wrong)); in ZSTDv01_findFrameSizeInfoLegacy()
1995 ZSTD_errorFrameSizeInfoLegacy(cSize, dBound, ERROR(prefix_unknown)); in ZSTDv01_findFrameSizeInfoLegacy()
2005 ZSTD_errorFrameSizeInfoLegacy(cSize, dBound, blockSize); in ZSTDv01_findFrameSizeInfoLegacy()
[all …]
H A Dzstd_v01.h49 size_t* cSize, unsigned long long* dBound);
H A Dzstd_v02.h49 size_t* cSize, unsigned long long* dBound);
H A Dzstd_v03.h49 size_t* cSize, unsigned long long* dBound);
H A Dzstd_v04.h49 size_t* cSize, unsigned long long* dBound);
H A Dzstd_v03.c2400 U32 cSize; in ZSTD_getcBlockSize() local
2405 cSize = in[2] + (in[1]<<8) + ((in[0] & 7)<<16); in ZSTD_getcBlockSize()
2408 bpPtr->origSize = (bpPtr->blockType == bt_rle) ? cSize : 0; in ZSTD_getcBlockSize()
2412 return cSize; in ZSTD_getcBlockSize()
2914 MEM_STATIC void ZSTD_errorFrameSizeInfoLegacy(size_t* cSize, unsigned long long* dBound, size_t ret) in ZSTD_errorFrameSizeInfoLegacy() argument
2916 *cSize = ret; in ZSTD_errorFrameSizeInfoLegacy()
2920 void ZSTDv03_findFrameSizeInfoLegacy(const void *src, size_t srcSize, size_t* cSize, unsigned long … in ZSTDv03_findFrameSizeInfoLegacy() argument
2930 ZSTD_errorFrameSizeInfoLegacy(cSize, dBound, ERROR(srcSize_wrong)); in ZSTDv03_findFrameSizeInfoLegacy()
2935 ZSTD_errorFrameSizeInfoLegacy(cSize, dBound, ERROR(prefix_unknown)); in ZSTDv03_findFrameSizeInfoLegacy()
2945 ZSTD_errorFrameSizeInfoLegacy(cSize, dBound, cBlockSize); in ZSTDv03_findFrameSizeInfoLegacy()
[all …]
H A Dzstd_v06.h56 size_t* cSize, unsigned long long* dBound);
H A Dzstd_v05.h47 size_t* cSize, unsigned long long* dBound);
H A Dzstd_v07.h63 size_t* cSize, unsigned long long* dBound);
H A Dzstd_v02.c2760 U32 cSize; in ZSTD_getcBlockSize() local
2765 cSize = in[2] + (in[1]<<8) + ((in[0] & 7)<<16); in ZSTD_getcBlockSize()
2768 bpPtr->origSize = (bpPtr->blockType == bt_rle) ? cSize : 0; in ZSTD_getcBlockSize()
2772 return cSize; in ZSTD_getcBlockSize()
3275 static void ZSTD_errorFrameSizeInfoLegacy(size_t* cSize, unsigned long long* dBound, size_t ret) in ZSTD_errorFrameSizeInfoLegacy() argument
3277 *cSize = ret; in ZSTD_errorFrameSizeInfoLegacy()
3281 void ZSTDv02_findFrameSizeInfoLegacy(const void *src, size_t srcSize, size_t* cSize, unsigned long … in ZSTDv02_findFrameSizeInfoLegacy() argument
3291 ZSTD_errorFrameSizeInfoLegacy(cSize, dBound, ERROR(srcSize_wrong)); in ZSTDv02_findFrameSizeInfoLegacy()
3296 ZSTD_errorFrameSizeInfoLegacy(cSize, dBound, ERROR(prefix_unknown)); in ZSTDv02_findFrameSizeInfoLegacy()
3306 ZSTD_errorFrameSizeInfoLegacy(cSize, dBound, cBlockSize); in ZSTDv02_findFrameSizeInfoLegacy()
[all …]
H A Dzstd_v04.c2532 U32 cSize; in ZSTD_getcBlockSize() local
2537 cSize = in[2] + (in[1]<<8) + ((in[0] & 7)<<16); in ZSTD_getcBlockSize()
2540 bpPtr->origSize = (bpPtr->blockType == bt_rle) ? cSize : 0; in ZSTD_getcBlockSize()
2544 return cSize; in ZSTD_getcBlockSize()
3087 static void ZSTD_errorFrameSizeInfoLegacy(size_t* cSize, unsigned long long* dBound, size_t ret) in ZSTD_errorFrameSizeInfoLegacy() argument
3089 *cSize = ret; in ZSTD_errorFrameSizeInfoLegacy()
3093 void ZSTDv04_findFrameSizeInfoLegacy(const void *src, size_t srcSize, size_t* cSize, unsigned long … in ZSTDv04_findFrameSizeInfoLegacy() argument
3102 ZSTD_errorFrameSizeInfoLegacy(cSize, dBound, ERROR(srcSize_wrong)); in ZSTDv04_findFrameSizeInfoLegacy()
3106 ZSTD_errorFrameSizeInfoLegacy(cSize, dBound, ERROR(prefix_unknown)); in ZSTDv04_findFrameSizeInfoLegacy()
3116 ZSTD_errorFrameSizeInfoLegacy(cSize, dBound, cBlockSize); in ZSTDv04_findFrameSizeInfoLegacy()
[all …]
H A Dzstd_v06.c2973 U32 cSize; in ZSTDv06_getcBlockSize() local
2978 cSize = in[2] + (in[1]<<8) + ((in[0] & 7)<<16); in ZSTDv06_getcBlockSize()
2979 bpPtr->origSize = (bpPtr->blockType == bt_rle) ? cSize : 0; in ZSTDv06_getcBlockSize()
2983 return cSize; in ZSTDv06_getcBlockSize()
3611 static void ZSTD_errorFrameSizeInfoLegacy(size_t* cSize, unsigned long long* dBound, size_t ret) in ZSTD_errorFrameSizeInfoLegacy() argument
3613 *cSize = ret; in ZSTD_errorFrameSizeInfoLegacy()
3617 void ZSTDv06_findFrameSizeInfoLegacy(const void *src, size_t srcSize, size_t* cSize, unsigned long … in ZSTDv06_findFrameSizeInfoLegacy() argument
3627 ZSTD_errorFrameSizeInfoLegacy(cSize, dBound, frameHeaderSize); in ZSTDv06_findFrameSizeInfoLegacy()
3631 ZSTD_errorFrameSizeInfoLegacy(cSize, dBound, ERROR(prefix_unknown)); in ZSTDv06_findFrameSizeInfoLegacy()
3635 ZSTD_errorFrameSizeInfoLegacy(cSize, dBound, ERROR(srcSize_wrong)); in ZSTDv06_findFrameSizeInfoLegacy()
[all …]
H A Dzstd_v07.c3203 U32 cSize; in ZSTDv07_getcBlockSize() local
3208 cSize = in[2] + (in[1]<<8) + ((in[0] & 7)<<16); in ZSTDv07_getcBlockSize()
3209 bpPtr->origSize = (bpPtr->blockType == bt_rle) ? cSize : 0; in ZSTDv07_getcBlockSize()
3213 return cSize; in ZSTDv07_getcBlockSize()
3854 static void ZSTD_errorFrameSizeInfoLegacy(size_t* cSize, unsigned long long* dBound, size_t ret) in ZSTD_errorFrameSizeInfoLegacy() argument
3856 *cSize = ret; in ZSTD_errorFrameSizeInfoLegacy()
3860 void ZSTDv07_findFrameSizeInfoLegacy(const void *src, size_t srcSize, size_t* cSize, unsigned long … in ZSTDv07_findFrameSizeInfoLegacy() argument
3868 ZSTD_errorFrameSizeInfoLegacy(cSize, dBound, ERROR(srcSize_wrong)); in ZSTDv07_findFrameSizeInfoLegacy()
3875 ZSTD_errorFrameSizeInfoLegacy(cSize, dBound, frameHeaderSize); in ZSTDv07_findFrameSizeInfoLegacy()
3879 ZSTD_errorFrameSizeInfoLegacy(cSize, dBound, ERROR(prefix_unknown)); in ZSTDv07_findFrameSizeInfoLegacy()
[all …]
H A Dzstd_v05.c2782 U32 cSize; in ZSTDv05_getcBlockSize() local
2788 cSize = in[2] + (in[1]<<8) + ((in[0] & 7)<<16); in ZSTDv05_getcBlockSize()
2791 bpPtr->origSize = (bpPtr->blockType == bt_rle) ? cSize : 0; in ZSTDv05_getcBlockSize()
2795 return cSize; in ZSTDv05_getcBlockSize()
3478 static void ZSTD_errorFrameSizeInfoLegacy(size_t* cSize, unsigned long long* dBound, size_t ret) in ZSTD_errorFrameSizeInfoLegacy() argument
3480 *cSize = ret; in ZSTD_errorFrameSizeInfoLegacy()
3484 void ZSTDv05_findFrameSizeInfoLegacy(const void *src, size_t srcSize, size_t* cSize, unsigned long … in ZSTDv05_findFrameSizeInfoLegacy() argument
3493 ZSTD_errorFrameSizeInfoLegacy(cSize, dBound, ERROR(srcSize_wrong)); in ZSTDv05_findFrameSizeInfoLegacy()
3497 ZSTD_errorFrameSizeInfoLegacy(cSize, dBound, ERROR(prefix_unknown)); in ZSTDv05_findFrameSizeInfoLegacy()
3507 ZSTD_errorFrameSizeInfoLegacy(cSize, dBound, cBlockSize); in ZSTDv05_findFrameSizeInfoLegacy()
[all …]
/freebsd/sys/contrib/zstd/zlibWrapper/
H A Dzstd_zlibwrapper.c1108 size_t const cSize = ZSTD_compress(dest, dstCapacity, in z_compress() local
1113 if (ZSTD_isError(cSize)) return Z_STREAM_ERROR; in z_compress()
1114 *destLen = cSize; in z_compress()
1128 size_t const cSize = ZSTD_compress(dest, dstCapacity, source, sourceLen, level); in z_compress2() local
1129 if (ZSTD_isError(cSize)) return Z_STREAM_ERROR; in z_compress2()
1130 *destLen = cSize; in z_compress2()
/freebsd/sys/contrib/zstd/lib/dictBuilder/
H A Dzdict.c572 size_t cSize; in ZDICT_countEStats() local
579 cSize = ZSTD_compressBlock_deprecated(esr.zc, esr.workPlace, ZSTD_BLOCKSIZE_MAX, src, srcSize); in ZDICT_countEStats()
580 …if (ZSTD_isError(cSize)) { DISPLAYLEVEL(3, "warning : could not compress sample size %u \n", (unsi… in ZDICT_countEStats()
582 if (cSize) { /* if == 0; block is not compressible */ in ZDICT_countEStats()

12