]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
correction on offset history (swap when llCode==0)
authorYann Collet <yann.collet.73@gmail.com>
Sat, 30 Jul 2016 11:12:34 +0000 (13:12 +0200)
committerYann Collet <yann.collet.73@gmail.com>
Sat, 30 Jul 2016 11:12:34 +0000 (13:12 +0200)
zstd_compression_format.md

index 79f9620e77c882f5e23beab3d1008c26b982f2a5..b4f8b8af4d5ddff6ff05d555f8dfa9d93d5432df 100644 (file)
@@ -1081,9 +1081,9 @@ As seen in [Offset Codes], the first 3 values define a repeated offset.
 They are sorted in recency order, with 1 meaning "most recent one".
 
 There is an exception though, when current sequence's literal length is `0`.
-In which case, 1 would just make previous match longer.
-Therefore, in such case, 1 means in fact 2, and 2 is impossible.
-Meaning of 3 is unmodified.
+In which case, the first 2 values are swapped,
+meaning `2` refers to the most recent offset,
+while `1` refers to the second most recent offset,
 
 Repeat offsets start with the following values : 1, 4 and 8 (in order).