]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
restored 32-bits decoder ability to decode long offsets (>32 MB, levels 21+)
authorYann Collet <cyan@fb.com>
Fri, 1 Sep 2017 18:56:57 +0000 (11:56 -0700)
committerYann Collet <cyan@fb.com>
Fri, 1 Sep 2017 18:56:57 +0000 (11:56 -0700)
lib/decompress/zstd_decompress.c

index bc8f938519f0086a0b60f0d17b9c96b94f85255c..ada773b9a7cf911b94fcf2e375980f60623d4643 100644 (file)
@@ -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);
 }