From f34035ecfbc44ef8f97ed71f0a004902a100f806 Mon Sep 17 00:00:00 2001 From: Yann Collet Date: Sat, 30 Jul 2016 13:12:34 +0200 Subject: [PATCH] correction on offset history (swap when llCode==0) --- zstd_compression_format.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/zstd_compression_format.md b/zstd_compression_format.md index 79f9620e7..b4f8b8af4 100644 --- a/zstd_compression_format.md +++ b/zstd_compression_format.md @@ -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).