mirror of
https://github.com/facebook/zstd.git
synced 2025-10-06 00:04:13 -04:00
Fix ZSTD_dedicatedDictSearch_isSupported() requirements
This commit is contained in:
parent
413b3198b0
commit
77ae664ba6
@ -5186,7 +5186,10 @@ static ZSTD_compressionParameters ZSTD_dedicatedDictSearch_getCParams(int const
|
||||
static int ZSTD_dedicatedDictSearch_isSupported(
|
||||
ZSTD_compressionParameters const* cParams)
|
||||
{
|
||||
return (cParams->strategy >= ZSTD_greedy) && (cParams->strategy <= ZSTD_lazy2);
|
||||
return (cParams->strategy >= ZSTD_greedy)
|
||||
&& (cParams->strategy <= ZSTD_lazy2)
|
||||
&& (cParams->hashLog >= cParams->chainLog)
|
||||
&& (cParams->chainLog <= 24);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -805,6 +805,8 @@ println "- Dictionary compression roundtrip"
|
||||
zstd -f tmp -D tmpDict
|
||||
zstd -d tmp.zst -D tmpDict -fo result
|
||||
$DIFF "$TESTFILE" result
|
||||
println "- Dictionary compression with hlog < clog"
|
||||
zstd -6f tmp -D tmpDict --zstd=clog=25,hlog=23
|
||||
println "- Dictionary compression with btlazy2 strategy"
|
||||
zstd -f tmp -D tmpDict --zstd=strategy=6
|
||||
zstd -d tmp.zst -D tmpDict -fo result
|
||||
|
Loading…
x
Reference in New Issue
Block a user