Home
last modified time | relevance | path

Searched refs:nbSeq (Results 1 – 14 of 14) sorted by relevance

/freebsd-12.1/sys/contrib/zstd/tests/
H A Ddecodecorpus.c819 if (nbSeq < 0x7F) *op++ = (BYTE)nbSeq; in writeSequences()
820 else if (nbSeq < LONGNBSEQ) op[0] = (BYTE)((nbSeq>>8) + 0x80), op[1] = (BYTE)nbSeq, op+=2; in writeSequences()
826 if (nbSeq==0) { in writeSequences()
856 if (count[llCodeTable[nbSeq-1]]>1) { count[llCodeTable[nbSeq-1]]--; nbSeq_1--; } in writeSequences()
883 if (count[ofCodeTable[nbSeq-1]]>1) { count[ofCodeTable[nbSeq-1]]--; nbSeq_1--; } in writeSequences()
912 if (count[mlCodeTable[nbSeq-1]]>1) { count[mlCodeTable[nbSeq-1]]--; nbSeq_1--; } in writeSequences()
941 BIT_addBits(&blockStream, sequences[nbSeq-1].litLength, LL_bits[llCodeTable[nbSeq-1]]); in writeSequences()
943 BIT_addBits(&blockStream, sequences[nbSeq-1].matchLength, ML_bits[mlCodeTable[nbSeq-1]]); in writeSequences()
945 BIT_addBits(&blockStream, sequences[nbSeq-1].offset, ofCodeTable[nbSeq-1]); in writeSequences()
949 for (n=nbSeq-2 ; n<nbSeq ; n--) { /* intentional underflow */ in writeSequences()
[all …]
H A Dfullbench.c119 extern size_t ZSTD_decodeSeqHeaders(ZSTD_DCtx* dctx, int* nbSeq, const void* src, size_t srcSize);
122 int nbSeq; in local_ZSTD_decodeSeqHeaders() local
124 return ZSTD_decodeSeqHeaders(g_zdc, &nbSeq, buff2, g_cSize); in local_ZSTD_decodeSeqHeaders()
/freebsd-12.1/sys/contrib/zstd/lib/compress/
H A Dzstd_compress.c1454 for (u=0; u<nbSeq; u++) { in ZSTD_seqToCodes()
1480 if ((mostFrequent == nbSeq) && (!isDefaultAllowed || nbSeq > 2)) { in ZSTD_selectEncodingType()
1536 size_t nbSeq_1 = nbSeq; in ZSTD_buildCTable()
1573 BIT_addBits(&blockStream, sequences[nbSeq-1].litLength, LL_bits[llCodeTable[nbSeq-1]]); in ZSTD_encodeSequences_body()
1587 BIT_addBits(&blockStream, sequences[nbSeq-1].offset, ofCodeTable[nbSeq-1]); in ZSTD_encodeSequences_body()
1592 for (n=nbSeq-2 ; n<nbSeq ; n--) { /* intentional underflow */ in ZSTD_encodeSequences_body()
1743 if (nbSeq < 0x7F) in ZSTD_compressSequences_internal()
1744 *op++ = (BYTE)nbSeq; in ZSTD_compressSequences_internal()
1745 else if (nbSeq < LONGNBSEQ) in ZSTD_compressSequences_internal()
1746 op[0] = (BYTE)((nbSeq>>8) + 0x80), op[1] = (BYTE)nbSeq, op+=2; in ZSTD_compressSequences_internal()
[all …]
H A Dzstd_compress_internal.h706 size_t ZSTD_referenceExternalSequences(ZSTD_CCtx* cctx, rawSeq* seq, size_t nbSeq);
H A Dzstdmt_compress.c296 static void ZSTDMT_setNbSeq(ZSTDMT_seqPool* const seqPool, size_t const nbSeq) in ZSTDMT_setNbSeq() argument
298 ZSTDMT_setBufferSize(seqPool, nbSeq * sizeof(rawSeq)); in ZSTDMT_setNbSeq()
/freebsd-12.1/sys/contrib/zstd/lib/decompress/
H A Dzstd_decompress.c949 { int nbSeq = *ip++; in ZSTD_decodeSeqHeaders() local
950 if (!nbSeq) { *nbSeqPtr=0; return 1; } in ZSTD_decodeSeqHeaders()
951 if (nbSeq > 0x7F) { in ZSTD_decodeSeqHeaders()
952 if (nbSeq == 0xFF) { in ZSTD_decodeSeqHeaders()
957 nbSeq = ((nbSeq-0x80)<<8) + *ip++; in ZSTD_decodeSeqHeaders()
960 *nbSeqPtr = nbSeq; in ZSTD_decodeSeqHeaders()
1363 if (nbSeq) { in ZSTD_decompressSequences_body()
1373 nbSeq--; in ZSTD_decompressSequences_body()
1506 if (nbSeq) { in ZSTD_decompressSequencesLong_body()
1543 for ( ; seqNb<nbSeq ; seqNb++) { in ZSTD_decompressSequencesLong_body()
[all …]
/freebsd-12.1/sys/contrib/zstd/lib/legacy/
H A Dzstd_v06.c3228 { int nbSeq = *ip++; in ZSTDv06_decodeSeqHeaders() local
3229 if (!nbSeq) { *nbSeqPtr=0; return 1; } in ZSTDv06_decodeSeqHeaders()
3230 if (nbSeq > 0x7F) { in ZSTDv06_decodeSeqHeaders()
3231 if (nbSeq == 0xFF) { in ZSTDv06_decodeSeqHeaders()
3233 nbSeq = MEM_readLE16(ip) + LONGNBSEQ, ip+=2; in ZSTDv06_decodeSeqHeaders()
3236 nbSeq = ((nbSeq-0x80)<<8) + *ip++; in ZSTDv06_decodeSeqHeaders()
3239 *nbSeqPtr = nbSeq; in ZSTDv06_decodeSeqHeaders()
3455 int nbSeq; in ZSTDv06_decompressSequences() local
3465 if (nbSeq) { in ZSTDv06_decompressSequences()
3479 nbSeq--; in ZSTDv06_decompressSequences()
[all …]
H A Dzstd_v07.c3454 { int nbSeq = *ip++; in ZSTDv07_decodeSeqHeaders() local
3455 if (!nbSeq) { *nbSeqPtr=0; return 1; } in ZSTDv07_decodeSeqHeaders()
3456 if (nbSeq > 0x7F) { in ZSTDv07_decodeSeqHeaders()
3457 if (nbSeq == 0xFF) { in ZSTDv07_decodeSeqHeaders()
3459 nbSeq = MEM_readLE16(ip) + LONGNBSEQ, ip+=2; in ZSTDv07_decodeSeqHeaders()
3462 nbSeq = ((nbSeq-0x80)<<8) + *ip++; in ZSTDv07_decodeSeqHeaders()
3465 *nbSeqPtr = nbSeq; in ZSTDv07_decodeSeqHeaders()
3678 int nbSeq; in ZSTDv07_decompressSequences() local
3687 if (nbSeq) { in ZSTDv07_decompressSequences()
3698 nbSeq--; in ZSTDv07_decompressSequences()
[all …]
H A Dzstd_v01.c1566 size_t ZSTDv01_decodeSeqHeaders(int* nbSeq, const BYTE** dumpsPtr, size_t* dumpsLengthPtr, in ZSTDv01_decodeSeqHeaders() argument
1581 *nbSeq = ZSTD_readLE16(ip); ip+=2; in ZSTDv01_decodeSeqHeaders()
1855 int nbSeq; in ZSTD_decompressSequences() local
1863 errorCode = ZSTDv01_decodeSeqHeaders(&nbSeq, &dumps, &dumpsLength, in ZSTD_decompressSequences()
1884 for ( ; (FSE_reloadDStream(&(seqState.DStream)) <= FSE_DStream_completed) && (nbSeq>0) ; ) in ZSTD_decompressSequences()
1887 nbSeq--; in ZSTD_decompressSequences()
1896 …if (nbSeq<0) return ERROR(corruption_detected); /* requested too many sequences : data is corrup… in ZSTD_decompressSequences()
H A Dzstd_v05.c2991 size_t ZSTDv05_decodeSeqHeaders(int* nbSeq, const BYTE** dumpsPtr, size_t* dumpsLengthPtr, in ZSTDv05_decodeSeqHeaders() argument
3007 *nbSeq = *ip++; in ZSTDv05_decodeSeqHeaders()
3008 if (*nbSeq==0) return 1; in ZSTDv05_decodeSeqHeaders()
3009 if (*nbSeq >= 128) { in ZSTDv05_decodeSeqHeaders()
3011 *nbSeq = ((nbSeq[0]-128)<<8) + *ip++; in ZSTDv05_decodeSeqHeaders()
3303 int nbSeq; in ZSTDv05_decompressSequences() local
3313 errorCode = ZSTDv05_decodeSeqHeaders(&nbSeq, &dumps, &dumpsLength, in ZSTDv05_decompressSequences()
3320 if (nbSeq) { in ZSTDv05_decompressSequences()
3335 … for ( ; (BITv05_reloadDStream(&(seqState.DStream)) <= BITv05_DStream_completed) && nbSeq ; ) { in ZSTDv05_decompressSequences()
3337 nbSeq--; in ZSTDv05_decompressSequences()
[all …]
H A Dzstd_v03.c2545 static size_t ZSTD_decodeSeqHeaders(int* nbSeq, const BYTE** dumpsPtr, size_t* dumpsLengthPtr, in ZSTD_decodeSeqHeaders() argument
2560 *nbSeq = MEM_readLE16(ip); ip+=2; in ZSTD_decodeSeqHeaders()
2811 int nbSeq; in ZSTD_decompressSequences() local
2819 errorCode = ZSTD_decodeSeqHeaders(&nbSeq, &dumps, &dumpsLength, in ZSTD_decompressSequences()
2840 for ( ; (BIT_reloadDStream(&(seqState.DStream)) <= BIT_DStream_completed) && (nbSeq>0) ; ) in ZSTD_decompressSequences()
2843 nbSeq--; in ZSTD_decompressSequences()
2852 …if (nbSeq<0) return ERROR(corruption_detected); /* requested too many sequences : data is corrup… in ZSTD_decompressSequences()
H A Dzstd_v02.c2904 static size_t ZSTD_decodeSeqHeaders(int* nbSeq, const BYTE** dumpsPtr, size_t* dumpsLengthPtr, in ZSTD_decodeSeqHeaders() argument
2919 *nbSeq = MEM_readLE16(ip); ip+=2; in ZSTD_decodeSeqHeaders()
3170 int nbSeq; in ZSTD_decompressSequences() local
3178 errorCode = ZSTD_decodeSeqHeaders(&nbSeq, &dumps, &dumpsLength, in ZSTD_decompressSequences()
3199 for ( ; (BIT_reloadDStream(&(seqState.DStream)) <= BIT_DStream_completed) && (nbSeq>0) ; ) in ZSTD_decompressSequences()
3202 nbSeq--; in ZSTD_decompressSequences()
3211 …if (nbSeq<0) return ERROR(corruption_detected); /* requested too many sequences : data is corrup… in ZSTD_decompressSequences()
H A Dzstd_v04.c2735 static size_t ZSTD_decodeSeqHeaders(int* nbSeq, const BYTE** dumpsPtr, size_t* dumpsLengthPtr, in ZSTD_decodeSeqHeaders() argument
2750 *nbSeq = MEM_readLE16(ip); ip+=2; in ZSTD_decodeSeqHeaders()
3013 int nbSeq; in ZSTD_decompressSequences() local
3023 errorCode = ZSTD_decodeSeqHeaders(&nbSeq, &dumps, &dumpsLength, in ZSTD_decompressSequences()
3045 for ( ; (BIT_reloadDStream(&(seqState.DStream)) <= BIT_DStream_completed) && nbSeq ; ) in ZSTD_decompressSequences()
3048 nbSeq--; in ZSTD_decompressSequences()
/freebsd-12.1/sys/contrib/zstd/lib/dictBuilder/
H A Dzdict.c616 { U32 const nbSeq = (U32)(seqStorePtr->sequences - seqStorePtr->sequencesStart); in ZDICT_countEStats() local
621 for (u=0; u<nbSeq; u++) offsetcodeCount[codePtr[u]]++; in ZDICT_countEStats()
626 for (u=0; u<nbSeq; u++) matchlengthCount[codePtr[u]]++; in ZDICT_countEStats()
631 for (u=0; u<nbSeq; u++) litlengthCount[codePtr[u]]++; in ZDICT_countEStats()
634 if (nbSeq >= 2) { /* rep offsets */ in ZDICT_countEStats()