Home
last modified time | relevance | path

Searched refs:ZSTD_BLOCKSIZE_MAX (Results 1 – 15 of 15) sorted by relevance

/external/zstd/tests/fuzz/
Dblock_round_trip.c65 if (size > ZSTD_BLOCKSIZE_MAX) in LLVMFuzzerTestOneInput()
66 size = ZSTD_BLOCKSIZE_MAX; in LLVMFuzzerTestOneInput()
Dblock_decompress.c30 size_t const neededBufSize = ZSTD_BLOCKSIZE_MAX; in LLVMFuzzerTestOneInput()
Dstream_decompress.c78 bufSize = MAX(10 * size, ZSTD_BLOCKSIZE_MAX); in LLVMFuzzerTestOneInput()
/external/zstd/tests/
Ddecodecorpus.c176 #define MAX_NB_SEQ ((ZSTD_BLOCKSIZE_MAX + MIN_SEQ_LEN - 1) / MIN_SEQ_LEN)
180 BYTE LITERAL_BUFFER[ZSTD_BLOCKSIZE_MAX];
183 BYTE SEQUENCE_LITERAL_BUFFER[ZSTD_BLOCKSIZE_MAX]; /* storeSeq expects a place to copy literals to */
184 BYTE SEQUENCE_LLCODE[ZSTD_BLOCKSIZE_MAX];
185 BYTE SEQUENCE_MLCODE[ZSTD_BLOCKSIZE_MAX];
186 BYTE SEQUENCE_OFCODE[ZSTD_BLOCKSIZE_MAX];
247 U32 g_maxBlockSize = ZSTD_BLOCKSIZE_MAX; /* <= 128 KB */
625 seqStore->maxNbLit = ZSTD_BLOCKSIZE_MAX; in initSeqStore()
1885 if (value >= 2 && value <= ZSTD_BLOCKSIZE_MAX) { in main()
Dfullbench.c172 RETURN_ERROR_IF(litSize > ZSTD_BLOCKSIZE_MAX, corruption_detected, ""); in ZSTD_decodeLiteralsHeader()
Dzstreamtest.c359 if (cstreamSize <= cctxSize + 2 * ZSTD_BLOCKSIZE_MAX) goto _output_error; in basicUnitTests()
/external/zstd/lib/decompress/
Dzstd_decompress_internal.h160 BYTE litBuffer[ZSTD_BLOCKSIZE_MAX + WILDCOPY_OVERLENGTH];
Dzstd_decompress_block.c124 RETURN_ERROR_IF(litSize > ZSTD_BLOCKSIZE_MAX, corruption_detected, ""); in ZSTD_decodeLiteralsBlock()
225 RETURN_ERROR_IF(litSize > ZSTD_BLOCKSIZE_MAX, corruption_detected, ""); in ZSTD_decodeLiteralsBlock()
1084 assert(sequenceSize <= ZSTD_BLOCKSIZE_MAX); in ZSTD_assertValidSequence()
1463 RETURN_ERROR_IF(srcSize >= ZSTD_BLOCKSIZE_MAX, srcSize_wrong, ""); in ZSTD_decompressBlock_internal()
Dzstd_decompress.c321 zfhPtr->blockSizeMax = (unsigned) MIN(windowSize, ZSTD_BLOCKSIZE_MAX); in ZSTD_getFrameHeader_advanced()
1307 size_t ZSTD_DStreamInSize(void) { return ZSTD_BLOCKSIZE_MAX + ZSTD_blockHeaderSize; } in ZSTD_DStreamInSize()
1308 size_t ZSTD_DStreamOutSize(void) { return ZSTD_BLOCKSIZE_MAX; } in ZSTD_DStreamOutSize()
1531 size_t const blockSize = (size_t) MIN(windowSize, ZSTD_BLOCKSIZE_MAX); in ZSTD_decodingBufferSize_min()
1542 size_t const blockSize = MIN(windowSize, ZSTD_BLOCKSIZE_MAX); in ZSTD_estimateDStreamSize()
/external/zstd/lib/
Dzstd.h109 #define ZSTD_BLOCKSIZE_MAX (1<<ZSTD_BLOCKSIZELOG_MAX) macro
1086 #define ZSTD_TARGETLENGTH_MAX ZSTD_BLOCKSIZE_MAX
1114 #define ZSTD_TARGETCBLOCKSIZE_MAX ZSTD_BLOCKSIZE_MAX
/external/zstd/lib/dictBuilder/
Dzdict.c619 size_t const blockSizeMax = MIN (ZSTD_BLOCKSIZE_MAX, 1 << params->cParams.windowLog); in ZDICT_countEStats()
627 cSize = ZSTD_compressBlock(esr.zc, esr.workPlace, ZSTD_BLOCKSIZE_MAX, src, srcSize); in ZDICT_countEStats()
748 esr.workPlace = malloc(ZSTD_BLOCKSIZE_MAX); in ZDICT_analyzeEntropy()
/external/zstd/contrib/seekable_format/
Dzstdseek_decompress.c154 #define SEEKABLE_BUFF_SIZE ZSTD_BLOCKSIZE_MAX
/external/zstd/lib/compress/
Dzstd_compress.c1307 size_t const blockSize = MIN(ZSTD_BLOCKSIZE_MAX, windowSize); in ZSTD_estimateCCtxSize_usingCCtxParams_internal()
1383 size_t const blockSize = MIN(ZSTD_BLOCKSIZE_MAX, (size_t)1 << cParams.windowLog); in ZSTD_estimateCStreamSize_usingCCtxParams()
1435 assert(buffered <= ZSTD_BLOCKSIZE_MAX); in ZSTD_getFrameProgression()
1622 size_t const blockSize = MIN(ZSTD_BLOCKSIZE_MAX, windowSize); in ZSTD_resetCCtx_internal()
2446 assert(srcSize <= ZSTD_BLOCKSIZE_MAX); in ZSTD_buildSeqStore()
3061 return MIN (ZSTD_BLOCKSIZE_MAX, (U32)1 << cParams.windowLog); in ZSTD_getBlockSize()
3978 size_t ZSTD_CStreamInSize(void) { return ZSTD_BLOCKSIZE_MAX; } in ZSTD_CStreamInSize()
3982 return ZSTD_compressBound(ZSTD_BLOCKSIZE_MAX) + ZSTD_blockHeaderSize + 4 /* 32-bits hash */ ; in ZSTD_CStreamOutSize()
Dzstd_opt.c1302 assert(srcSize <= ZSTD_BLOCKSIZE_MAX); in ZSTD_compressBlock_btultra2()
Dzstdmt_compress.c717 { size_t const chunkSize = 4*ZSTD_BLOCKSIZE_MAX; in ZSTDMT_compressionJob()