| /f-stack/freebsd/contrib/zstd/lib/compress/ |
| H A D | zstd_compress_sequences.c | 63 return nbSeq >= 2048; in ZSTD_useLowProbCount() 76 …RWARD_IF_ERROR(FSE_normalizeCount(norm, tableLog, count, nbSeq, max, ZSTD_useLowProbCount(nbSeq)),… in ZSTD_NCountCost() 164 if (mostFrequent == nbSeq) { in ZSTD_selectEncodingType() 166 if (isDefaultAllowed && nbSeq <= 2) { in ZSTD_selectEncodingType() 262 size_t nbSeq_1 = nbSeq; in ZSTD_buildCTable() 264 if (count[codeTable[nbSeq-1]] > 1) { in ZSTD_buildCTable() 265 count[codeTable[nbSeq-1]]--; in ZSTD_buildCTable() 305 BIT_addBits(&blockStream, sequences[nbSeq-1].litLength, LL_bits[llCodeTable[nbSeq-1]]); in ZSTD_encodeSequences_body() 307 BIT_addBits(&blockStream, sequences[nbSeq-1].matchLength, ML_bits[mlCodeTable[nbSeq-1]]); in ZSTD_encodeSequences_body() 319 BIT_addBits(&blockStream, sequences[nbSeq-1].offset, ofCodeTable[nbSeq-1]); in ZSTD_encodeSequences_body() [all …]
|
| H A D | zstd_compress_superblock.c | 409 const seqDef* const send = sequences + nbSeq; in ZSTD_seqDecompressedSize() 456 if (nbSeq < 0x7F) in ZSTD_compressSubBlock_sequences() 457 *op++ = (BYTE)nbSeq; in ZSTD_compressSubBlock_sequences() 458 else if (nbSeq < LONGNBSEQ) in ZSTD_compressSubBlock_sequences() 459 op[0] = (BYTE)((nbSeq>>8) + 0x80), op[1] = (BYTE)nbSeq, op+=2; in ZSTD_compressSubBlock_sequences() 462 if (nbSeq==0) { in ZSTD_compressSubBlock_sequences() 489 sequences, nbSeq, in ZSTD_compressSubBlock_sequences() 604 size_t nbSeq, const FSE_CTable* fseCTable, in ZSTD_estimateSubBlockSize_symbolType() argument 612 const BYTE* const ctEnd = ctStart + nbSeq; in ZSTD_estimateSubBlockSize_symbolType() 640 size_t nbSeq, in ZSTD_estimateSubBlockSize_sequences() argument [all …]
|
| H A D | 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);
|
| H A D | zstd_compress.c | 2123 assert(nbSeq <= seqStorePtr->maxNbSeq); in ZSTD_seqToCodes() 2124 for (u=0; u<nbSeq; u++) { in ZSTD_seqToCodes() 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() 2214 if (nbSeq==0) { in ZSTD_entropyCompressSequences_internal() 2241 count, max, llCodeTable, nbSeq, in ZSTD_entropyCompressSequences_internal() 2980 cctx->externSeqStore.size = nbSeq; in ZSTD_referenceExternalSequences() [all …]
|
| H A D | zstd_compress_internal.h | 1197 size_t ZSTD_referenceExternalSequences(ZSTD_CCtx* cctx, rawSeq* seq, size_t nbSeq);
|
| H A D | 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()
|
| /f-stack/freebsd/contrib/zstd/lib/decompress/ |
| H A D | zstd_decompress_block.c | 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() 603 nbSeq = ((nbSeq-0x80)<<8) + *ip++; in ZSTD_decodeSeqHeaders() 606 *nbSeqPtr = nbSeq; in ZSTD_decodeSeqHeaders() 1123 if (nbSeq) { in ZSTD_decompressSequences_body() 1256 if (nbSeq) { in ZSTD_decompressSequencesLong_body() 1302 for ( ; seqNb<nbSeq ; seqNb++) { in ZSTD_decompressSequencesLong_body() [all …]
|
| /f-stack/freebsd/contrib/openzfs/module/zstd/lib/ |
| H A D | zstd.c | 12164 if (nbSeq < 0x7F) in ZSTD_compressSubBlock_sequences() 12167 op[0] = (BYTE)((nbSeq>>8) + 0x80), op[1] = (BYTE)nbSeq, op+=2; in ZSTD_compressSubBlock_sequences() 12170 if (nbSeq==0) { in ZSTD_compressSubBlock_sequences() 15108 if (nbSeq==0) { in ZSTD_compressSequences_internal() 26879 int nbSeq; in ZSTD_decodeSeqHeaders() local 26886 nbSeq = *ip++; in ZSTD_decodeSeqHeaders() 26887 if (!nbSeq) { in ZSTD_decodeSeqHeaders() 26898 nbSeq = ((nbSeq-0x80)<<8) + *ip++; in ZSTD_decodeSeqHeaders() 27408 if (nbSeq) { in ZSTD_decompressSequences_body() 27541 if (nbSeq) { in ZSTD_decompressSequencesLong_body() [all …]
|
| /f-stack/freebsd/contrib/zstd/lib/legacy/ |
| H A D | zstd_v06.c | 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 3469 if (nbSeq) { in ZSTDv06_decompressSequences() 3483 nbSeq--; in ZSTDv06_decompressSequences() [all …]
|
| H A D | zstd_v07.c | 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 3695 if (nbSeq) { in ZSTDv07_decompressSequences() 3706 nbSeq--; in ZSTDv07_decompressSequences() [all …]
|
| H A D | 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()
|
| H A D | 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 …]
|
| H A D | 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()
|
| H A D | 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()
|
| H A D | 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()
|
| /f-stack/freebsd/contrib/zstd/lib/dictBuilder/ |
| H A D | 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()
|