Home
last modified time | relevance | path

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

/external/zstd/lib/compress/
Dzstd_compress_sequences.c57 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 …]
Dzstd_compress_superblock.c184 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 …]
Dzstd_compress_sequences.h25 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);
Dzstd_compress.c2121 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 …]
Dzstd_compress_internal.h1197 size_t ZSTD_referenceExternalSequences(ZSTD_CCtx* cctx, rawSeq* seq, size_t nbSeq);
Dzstdmt_compress.c312 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()
/external/zstd/lib/decompress/
Dzstd_decompress_block.c534 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 …]
/external/zstd/tests/
Ddecodecorpus.c802 size_t nbSeq) in writeSequences() argument
824 if (nbSeq < 0x7F) *op++ = (BYTE)nbSeq; in writeSequences()
825 else if (nbSeq < LONGNBSEQ) op[0] = (BYTE)((nbSeq>>8) + 0x80), op[1] = (BYTE)nbSeq, op+=2; in writeSequences()
826 else op[0]=0xFF, MEM_writeLE16(op+1, (U16)(nbSeq - LONGNBSEQ)), op+=3; in writeSequences()
828 if (nbSeq==0) { in writeSequences()
841 …size_t const mostFrequent = HIST_countFast_wksp(count, &max, llCodeTable, nbSeq, WKSP, sizeof(WKSP… in writeSequences()
844 isSymbolSubset(llCodeTable, nbSeq, in writeSequences()
848 } else if (mostFrequent == nbSeq) { in writeSequences()
859 size_t nbSeq_1 = nbSeq; in writeSequences()
860 const U32 tableLog = FSE_optimalTableLog(LLFSELog, nbSeq, max); in writeSequences()
[all …]
Dfullbench.c134 int nbSeq; in local_ZSTD_decodeSeqHeaders() local
136 return ZSTD_decodeSeqHeaders(g_zdc, &nbSeq, buff2, g_cSize); in local_ZSTD_decodeSeqHeaders()
Dfuzzer.c2855 size_t nbSeq = 1; in basicUnitTests() local
2856 while (nbSeq <= maxNbSeq) { in basicUnitTests()
2857 CHECK(ZSTD_compressCCtx(cctx, compressedBuffer, bound, CNBuffer, nbSeq * 3, 19)); in basicUnitTests()
2859 if (nbSeq < 100) { in basicUnitTests()
2860 ++nbSeq; in basicUnitTests()
2862 nbSeq += (nbSeq >> 2); in basicUnitTests()
2978 size_t const nbSeq = 32; in basicUnitTests() local
2987 FSE_normalizeCount(norm, tableLog, count, nbSeq, maxSymbolValue, /* useLowProbCount */ 1); in basicUnitTests()
/external/zstd/lib/legacy/
Dzstd_v06.c616 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 …]
Dzstd_v07.c2851 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 …]
Dzstd_v01.c1576 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()
Dzstd_v05.c3001 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 …]
Dzstd_v03.c2565 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()
Dzstd_v02.c2924 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()
Dzstd_v04.c2691 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()
/external/zstd/lib/dictBuilder/
Dzdict.c640 { 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()