Rename ZSTD_DECOMPRESS_MINIMAL -> ZSTD_FORCE_DECOMPRESS_SEQUENCES_SHORT

This commit is contained in:
W. Felix Handte
2018-12-18 13:36:39 -08:00
parent 605dd576ee
commit 64553a0e35
+3 -3
View File
@@ -1202,7 +1202,7 @@ ZSTD_decompressBlock_internal(ZSTD_DCtx* dctx,
/* Build Decoding Tables */ /* Build Decoding Tables */
{ {
#ifndef ZSTD_DECOMPRESS_MINIMAL #ifndef ZSTD_FORCE_DECOMPRESS_SEQUENCES_SHORT
int usePrefetchDecoder = dctx->ddictIsCold; int usePrefetchDecoder = dctx->ddictIsCold;
#endif #endif
int nbSeq; int nbSeq;
@@ -1211,7 +1211,7 @@ ZSTD_decompressBlock_internal(ZSTD_DCtx* dctx,
ip += seqHSize; ip += seqHSize;
srcSize -= seqHSize; srcSize -= seqHSize;
#ifndef ZSTD_DECOMPRESS_MINIMAL #ifndef ZSTD_FORCE_DECOMPRESS_SEQUENCES_SHORT
if ( !usePrefetchDecoder if ( !usePrefetchDecoder
&& (!frame || (dctx->fParams.windowSize > (1<<24))) && (!frame || (dctx->fParams.windowSize > (1<<24)))
&& (nbSeq>ADVANCED_SEQS) ) { /* could probably use a larger nbSeq limit */ && (nbSeq>ADVANCED_SEQS) ) { /* could probably use a larger nbSeq limit */
@@ -1223,7 +1223,7 @@ ZSTD_decompressBlock_internal(ZSTD_DCtx* dctx,
dctx->ddictIsCold = 0; dctx->ddictIsCold = 0;
#ifndef ZSTD_DECOMPRESS_MINIMAL #ifndef ZSTD_FORCE_DECOMPRESS_SEQUENCES_SHORT
if (usePrefetchDecoder) if (usePrefetchDecoder)
return ZSTD_decompressSequencesLong(dctx, dst, dstCapacity, ip, srcSize, nbSeq, isLongOffset); return ZSTD_decompressSequencesLong(dctx, dst, dstCapacity, ip, srcSize, nbSeq, isLongOffset);
#endif #endif