From: Yann Collet Date: Fri, 1 Sep 2017 18:56:57 +0000 (-0700) Subject: restored 32-bits decoder ability to decode long offsets (>32 MB, levels 21+) X-Git-Tag: fuzz-corpora2~25^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8a5c0c98ae5a7884694589d7a69bc99011add94d;p=thirdparty%2Fzstd.git restored 32-bits decoder ability to decode long offsets (>32 MB, levels 21+) --- diff --git a/lib/decompress/zstd_decompress.c b/lib/decompress/zstd_decompress.c index bc8f93851..ada773b9a 100644 --- a/lib/decompress/zstd_decompress.c +++ b/lib/decompress/zstd_decompress.c @@ -1365,12 +1365,8 @@ static size_t ZSTD_decompressBlock_internal(ZSTD_DCtx* dctx, ip += litCSize; srcSize -= litCSize; } - if (sizeof(size_t) > 4) /* do not enable prefetching on 32-bits x86, as it's performance detrimental */ - /* likely because of register pressure */ - /* if that's the correct cause, then 32-bits ARM should be affected differently */ - /* it would be good to test this on ARM real hardware, to see if prefetch version improves speed */ - if (dctx->fParams.windowSize > (1<<23)) - return ZSTD_decompressSequencesLong(dctx, dst, dstCapacity, ip, srcSize); + if (dctx->fParams.windowSize > (1<<23)) + return ZSTD_decompressSequencesLong(dctx, dst, dstCapacity, ip, srcSize); return ZSTD_decompressSequences(dctx, dst, dstCapacity, ip, srcSize); }