| /freebsd-13-stable/sys/contrib/zstd/lib/compress/ |
| HD | zstd_compress_sequences.c | 57 static unsigned ZSTD_useLowProbCount(size_t const nbSeq) in ZSTD_useLowProbCount() argument 63 return nbSeq >= 2048; in ZSTD_useLowProbCount() 71 size_t const nbSeq, unsigned const FSELog) in ZSTD_NCountCost() argument 75 const U32 tableLog = FSE_optimalTableLog(FSELog, nbSeq, max); in ZSTD_NCountCost() 76 …RWARD_IF_ERROR(FSE_normalizeCount(norm, tableLog, count, nbSeq, max, ZSTD_useLowProbCount(nbSeq)),… in ZSTD_NCountCost() 157 size_t const mostFrequent, size_t nbSeq, unsigned const FSELog, in ZSTD_selectEncodingType() argument 164 if (mostFrequent == nbSeq) { in ZSTD_selectEncodingType() 166 if (isDefaultAllowed && nbSeq <= 2) { in ZSTD_selectEncodingType() 186 && (nbSeq < staticFse_nbSeq_max) ) { in ZSTD_selectEncodingType() 190 if ( (nbSeq < dynamicFse_nbSeq_min) in ZSTD_selectEncodingType() [all …]
|
| HD | zstd_compress_superblock.c | 184 size_t const nbSeq = seqStorePtr->sequences - seqStorePtr->sequencesStart; in ZSTD_buildSuperBlockEntropy_sequences() local 190 DEBUGLOG(5, "ZSTD_buildSuperBlockEntropy_sequences (nbSeq=%zu)", nbSeq); in ZSTD_buildSuperBlockEntropy_sequences() 199 …size_t const mostFrequent = HIST_countFast_wksp(countWksp, &max, llCodeTable, nbSeq, workspace, wk… in ZSTD_buildSuperBlockEntropy_sequences() 203 countWksp, max, mostFrequent, nbSeq, in ZSTD_buildSuperBlockEntropy_sequences() 210 … countWksp, max, llCodeTable, nbSeq, LL_defaultNorm, LL_defaultNormLog, MaxLL, in ZSTD_buildSuperBlockEntropy_sequences() 222 …size_t const mostFrequent = HIST_countFast_wksp(countWksp, &max, ofCodeTable, nbSeq, workspace, wk… in ZSTD_buildSuperBlockEntropy_sequences() 228 countWksp, max, mostFrequent, nbSeq, in ZSTD_buildSuperBlockEntropy_sequences() 234 … countWksp, max, ofCodeTable, nbSeq, OF_defaultNorm, OF_defaultNormLog, DefaultMaxOff, in ZSTD_buildSuperBlockEntropy_sequences() 246 …size_t const mostFrequent = HIST_countFast_wksp(countWksp, &max, mlCodeTable, nbSeq, workspace, wk… in ZSTD_buildSuperBlockEntropy_sequences() 250 countWksp, max, mostFrequent, nbSeq, in ZSTD_buildSuperBlockEntropy_sequences() [all …]
|
| HD | zstd_compress_sequences.h | 25 size_t const mostFrequent, size_t nbSeq, unsigned const FSELog, 35 const BYTE* codeTable, size_t nbSeq, 45 seqDef const* sequences, size_t nbSeq, int longOffsets, int bmi2);
|
| HD | zstd_compress.c | 2121 U32 const nbSeq = (U32)(seqStorePtr->sequences - seqStorePtr->sequencesStart); in ZSTD_seqToCodes() local 2123 assert(nbSeq <= seqStorePtr->maxNbSeq); in ZSTD_seqToCodes() 2124 for (u=0; u<nbSeq; u++) { in ZSTD_seqToCodes() 2172 size_t const nbSeq = (size_t)(seqStorePtr->sequences - seqStorePtr->sequencesStart); in ZSTD_entropyCompressSequences_internal() local 2179 DEBUGLOG(4, "ZSTD_entropyCompressSequences_internal (nbSeq=%zu)", nbSeq); in ZSTD_entropyCompressSequences_internal() 2202 if (nbSeq < 128) { in ZSTD_entropyCompressSequences_internal() 2203 *op++ = (BYTE)nbSeq; in ZSTD_entropyCompressSequences_internal() 2204 } else if (nbSeq < LONGNBSEQ) { in ZSTD_entropyCompressSequences_internal() 2205 op[0] = (BYTE)((nbSeq>>8) + 0x80); in ZSTD_entropyCompressSequences_internal() 2206 op[1] = (BYTE)nbSeq; in ZSTD_entropyCompressSequences_internal() [all …]
|
| HD | zstdmt_compress.c | 312 static void ZSTDMT_setNbSeq(ZSTDMT_seqPool* const seqPool, size_t const nbSeq) in ZSTDMT_setNbSeq() argument 314 ZSTDMT_setBufferSize(seqPool, nbSeq * sizeof(rawSeq)); in ZSTDMT_setNbSeq()
|
| HD | zstd_compress_internal.h | 1197 size_t ZSTD_referenceExternalSequences(ZSTD_CCtx* cctx, rawSeq* seq, size_t nbSeq);
|
| /freebsd-13-stable/sys/contrib/zstd/lib/decompress/ |
| HD | zstd_decompress_block.c | 534 int ddictIsCold, int nbSeq, U32* wksp, size_t wkspSize, in ZSTD_buildSeqTable() argument 555 if (ddictIsCold && (nbSeq > 24 /* heuristic */)) { in ZSTD_buildSeqTable() 583 int nbSeq; in ZSTD_decodeSeqHeaders() local 590 nbSeq = *ip++; in ZSTD_decodeSeqHeaders() 591 if (!nbSeq) { in ZSTD_decodeSeqHeaders() 596 if (nbSeq > 0x7F) { in ZSTD_decodeSeqHeaders() 597 if (nbSeq == 0xFF) { in ZSTD_decodeSeqHeaders() 599 nbSeq = MEM_readLE16(ip) + LONGNBSEQ; in ZSTD_decodeSeqHeaders() 603 nbSeq = ((nbSeq-0x80)<<8) + *ip++; in ZSTD_decodeSeqHeaders() 606 *nbSeqPtr = nbSeq; in ZSTD_decodeSeqHeaders() [all …]
|
| /freebsd-13-stable/sys/contrib/openzfs/module/zstd/lib/ |
| HD | zstd.c | 11028 size_t ZSTD_referenceExternalSequences(ZSTD_CCtx* cctx, rawSeq* seq, size_t nbSeq); 11236 size_t const mostFrequent, size_t nbSeq, unsigned const FSELog, 11246 const BYTE* codeTable, size_t nbSeq, 11256 seqDef const* sequences, size_t nbSeq, int longOffsets, int bmi2); 11310 size_t const nbSeq, unsigned const FSELog) in ZSTD_NCountCost() argument 11314 const U32 tableLog = FSE_optimalTableLog(FSELog, nbSeq, max); in ZSTD_NCountCost() 11315 FORWARD_IF_ERROR(FSE_normalizeCount(norm, tableLog, count, nbSeq, max), ""); in ZSTD_NCountCost() 11396 size_t const mostFrequent, size_t nbSeq, unsigned const FSELog, in ZSTD_selectEncodingType() argument 11403 if (mostFrequent == nbSeq) { in ZSTD_selectEncodingType() 11405 if (isDefaultAllowed && nbSeq <= 2) { in ZSTD_selectEncodingType() [all …]
|
| /freebsd-13-stable/sys/contrib/zstd/lib/legacy/ |
| HD | zstd_v06.c | 616 void ZSTDv06_seqToCodes(const seqStore_t* seqStorePtr, size_t const nbSeq); 3234 { int nbSeq = *ip++; in ZSTDv06_decodeSeqHeaders() local 3235 if (!nbSeq) { *nbSeqPtr=0; return 1; } in ZSTDv06_decodeSeqHeaders() 3236 if (nbSeq > 0x7F) { in ZSTDv06_decodeSeqHeaders() 3237 if (nbSeq == 0xFF) { in ZSTDv06_decodeSeqHeaders() 3239 nbSeq = MEM_readLE16(ip) + LONGNBSEQ, ip+=2; in ZSTDv06_decodeSeqHeaders() 3242 nbSeq = ((nbSeq-0x80)<<8) + *ip++; in ZSTDv06_decodeSeqHeaders() 3245 *nbSeqPtr = nbSeq; in ZSTDv06_decodeSeqHeaders() 3459 int nbSeq; in ZSTDv06_decompressSequences() local 3462 …{ size_t const seqHSize = ZSTDv06_decodeSeqHeaders(&nbSeq, DTableLL, DTableML, DTableOffb, dctx-… in ZSTDv06_decompressSequences() [all …]
|
| HD | zstd_v07.c | 2851 void ZSTDv07_seqToCodes(const seqStore_t* seqStorePtr, size_t const nbSeq); 3464 { int nbSeq = *ip++; in ZSTDv07_decodeSeqHeaders() local 3465 if (!nbSeq) { *nbSeqPtr=0; return 1; } in ZSTDv07_decodeSeqHeaders() 3466 if (nbSeq > 0x7F) { in ZSTDv07_decodeSeqHeaders() 3467 if (nbSeq == 0xFF) { in ZSTDv07_decodeSeqHeaders() 3469 nbSeq = MEM_readLE16(ip) + LONGNBSEQ, ip+=2; in ZSTDv07_decodeSeqHeaders() 3472 nbSeq = ((nbSeq-0x80)<<8) + *ip++; in ZSTDv07_decodeSeqHeaders() 3475 *nbSeqPtr = nbSeq; in ZSTDv07_decodeSeqHeaders() 3686 int nbSeq; in ZSTDv07_decompressSequences() local 3689 …{ size_t const seqHSize = ZSTDv07_decodeSeqHeaders(&nbSeq, DTableLL, DTableML, DTableOffb, dctx-… in ZSTDv07_decompressSequences() [all …]
|
| HD | zstd_v01.c | 1576 static size_t ZSTDv01_decodeSeqHeaders(int* nbSeq, const BYTE** dumpsPtr, size_t* dumpsLengthPtr, in ZSTDv01_decodeSeqHeaders() argument 1591 *nbSeq = ZSTD_readLE16(ip); ip+=2; in ZSTDv01_decodeSeqHeaders() 1865 int nbSeq; in ZSTD_decompressSequences() local 1873 errorCode = ZSTDv01_decodeSeqHeaders(&nbSeq, &dumps, &dumpsLength, in ZSTD_decompressSequences() 1894 for ( ; (FSE_reloadDStream(&(seqState.DStream)) <= FSE_DStream_completed) && (nbSeq>0) ; ) in ZSTD_decompressSequences() 1897 nbSeq--; in ZSTD_decompressSequences() 1906 …if (nbSeq<0) return ERROR(corruption_detected); /* requested too many sequences : data is corrup… in ZSTD_decompressSequences()
|
| HD | zstd_v05.c | 3001 static size_t ZSTDv05_decodeSeqHeaders(int* nbSeq, const BYTE** dumpsPtr, size_t* dumpsLengthPtr, in ZSTDv05_decodeSeqHeaders() argument 3017 *nbSeq = *ip++; in ZSTDv05_decodeSeqHeaders() 3018 if (*nbSeq==0) return 1; in ZSTDv05_decodeSeqHeaders() 3019 if (*nbSeq >= 128) { in ZSTDv05_decodeSeqHeaders() 3021 *nbSeq = ((nbSeq[0]-128)<<8) + *ip++; in ZSTDv05_decodeSeqHeaders() 3319 int nbSeq=0; in ZSTDv05_decompressSequences() local 3329 errorCode = ZSTDv05_decodeSeqHeaders(&nbSeq, &dumps, &dumpsLength, in ZSTDv05_decompressSequences() 3336 if (nbSeq) { in ZSTDv05_decompressSequences() 3351 … for ( ; (BITv05_reloadDStream(&(seqState.DStream)) <= BITv05_DStream_completed) && nbSeq ; ) { in ZSTDv05_decompressSequences() 3353 nbSeq--; in ZSTDv05_decompressSequences() [all …]
|
| HD | zstd_v03.c | 2565 static size_t ZSTD_decodeSeqHeaders(int* nbSeq, const BYTE** dumpsPtr, size_t* dumpsLengthPtr, in ZSTD_decodeSeqHeaders() argument 2580 *nbSeq = MEM_readLE16(ip); ip+=2; in ZSTD_decodeSeqHeaders() 2831 int nbSeq; in ZSTD_decompressSequences() local 2839 errorCode = ZSTD_decodeSeqHeaders(&nbSeq, &dumps, &dumpsLength, in ZSTD_decompressSequences() 2860 for ( ; (BIT_reloadDStream(&(seqState.DStream)) <= BIT_DStream_completed) && (nbSeq>0) ; ) in ZSTD_decompressSequences() 2863 nbSeq--; in ZSTD_decompressSequences() 2872 …if (nbSeq<0) return ERROR(corruption_detected); /* requested too many sequences : data is corrup… in ZSTD_decompressSequences()
|
| HD | zstd_v02.c | 2924 static size_t ZSTD_decodeSeqHeaders(int* nbSeq, const BYTE** dumpsPtr, size_t* dumpsLengthPtr, in ZSTD_decodeSeqHeaders() argument 2939 *nbSeq = MEM_readLE16(ip); ip+=2; in ZSTD_decodeSeqHeaders() 3190 int nbSeq; in ZSTD_decompressSequences() local 3198 errorCode = ZSTD_decodeSeqHeaders(&nbSeq, &dumps, &dumpsLength, in ZSTD_decompressSequences() 3219 for ( ; (BIT_reloadDStream(&(seqState.DStream)) <= BIT_DStream_completed) && (nbSeq>0) ; ) in ZSTD_decompressSequences() 3222 nbSeq--; in ZSTD_decompressSequences() 3231 …if (nbSeq<0) return ERROR(corruption_detected); /* requested too many sequences : data is corrup… in ZSTD_decompressSequences()
|
| HD | zstd_v04.c | 2691 static size_t ZSTD_decodeSeqHeaders(int* nbSeq, const BYTE** dumpsPtr, size_t* dumpsLengthPtr, in ZSTD_decodeSeqHeaders() argument 2706 *nbSeq = MEM_readLE16(ip); ip+=2; in ZSTD_decodeSeqHeaders() 2967 int nbSeq; in ZSTD_decompressSequences() local 2977 errorCode = ZSTD_decodeSeqHeaders(&nbSeq, &dumps, &dumpsLength, in ZSTD_decompressSequences() 2999 for ( ; (BIT_reloadDStream(&(seqState.DStream)) <= BIT_DStream_completed) && nbSeq ; ) in ZSTD_decompressSequences() 3002 nbSeq--; in ZSTD_decompressSequences()
|
| /freebsd-13-stable/sys/contrib/zstd/lib/dictBuilder/ |
| HD | zdict.c | 640 { U32 const nbSeq = (U32)(seqStorePtr->sequences - seqStorePtr->sequencesStart); in ZDICT_countEStats() local 645 for (u=0; u<nbSeq; u++) offsetcodeCount[codePtr[u]]++; in ZDICT_countEStats() 650 for (u=0; u<nbSeq; u++) matchlengthCount[codePtr[u]]++; in ZDICT_countEStats() 655 for (u=0; u<nbSeq; u++) litlengthCount[codePtr[u]]++; in ZDICT_countEStats() 658 if (nbSeq >= 2) { /* rep offsets */ in ZDICT_countEStats()
|