summaryrefslogtreecommitdiff
path: root/thirdparty/zstd/compress/zstd_compress_literals.h
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2022-06-28 19:13:17 +0200
committerGitHub <noreply@github.com>2022-06-28 19:13:17 +0200
commit8cd6127cb8905485f6e27f6e3760df78fb227aa4 (patch)
tree9016424e7553ca4ff930714dd5602db9b6bf15a0 /thirdparty/zstd/compress/zstd_compress_literals.h
parent622b656c40f9d8d9c8fdd45d6727f416952636d7 (diff)
parent39ed39900e34e10f40d0d06ed358d2641d7f3315 (diff)
Merge pull request #59167 from akien-mga/zstd-1.5.2
zstd: Update to upstream version 1.5.2
Diffstat (limited to 'thirdparty/zstd/compress/zstd_compress_literals.h')
-rw-r--r--thirdparty/zstd/compress/zstd_compress_literals.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/thirdparty/zstd/compress/zstd_compress_literals.h b/thirdparty/zstd/compress/zstd_compress_literals.h
index 9904c0cd30..9775fb97cb 100644
--- a/thirdparty/zstd/compress/zstd_compress_literals.h
+++ b/thirdparty/zstd/compress/zstd_compress_literals.h
@@ -18,12 +18,14 @@ size_t ZSTD_noCompressLiterals (void* dst, size_t dstCapacity, const void* src,
size_t ZSTD_compressRleLiteralsBlock (void* dst, size_t dstCapacity, const void* src, size_t srcSize);
+/* If suspectUncompressible then some sampling checks will be run to potentially skip huffman coding */
size_t ZSTD_compressLiterals (ZSTD_hufCTables_t const* prevHuf,
ZSTD_hufCTables_t* nextHuf,
ZSTD_strategy strategy, int disableLiteralCompression,
void* dst, size_t dstCapacity,
const void* src, size_t srcSize,
void* entropyWorkspace, size_t entropyWorkspaceSize,
- const int bmi2);
+ const int bmi2,
+ unsigned suspectUncompressible);
#endif /* ZSTD_COMPRESS_LITERALS_H */