From 6d2575eab37e14865130fc676c6130a784b5adae Mon Sep 17 00:00:00 2001 From: Joe Tsai Date: Thu, 29 Oct 2015 09:39:06 -0700 Subject: [PATCH] Use consistent bit convention in Section 5. * Rather than say "lower 3 bits" in one sentence and "bits 3-5" in the sentence right after, just consistently use the same convention and say "0-2" and "3-5". --- docs/draft-alakuijala-brotli-07.nroff | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/docs/draft-alakuijala-brotli-07.nroff b/docs/draft-alakuijala-brotli-07.nroff index 496cce8..0e2b288 100644 --- a/docs/draft-alakuijala-brotli-07.nroff +++ b/docs/draft-alakuijala-brotli-07.nroff @@ -964,13 +964,14 @@ and a copy length code, the following table can be used: First, look up the cell with the 64 value range containing the insert-and-copy length code, this gives the insert length code and -the copy length code ranges, both 8 values long. The copy length -code within its range is determined by the lowest 3 bits of the -insert-and-copy length code, and the insert length code within its -range is determined by bits 3-5 (counted from the LSB) of the insert- -and-copy length code. Given the insert length and copy length codes, -the actual insert and copy lengths can be obtained by reading the -number of extra bits given by the tables above. +the copy length code ranges, both 8 values long. +The copy length code within its range is determined by bits 0-2 +(counted from the LSB) of the insert-and-copy length code. +The insert length code within its range is determined by bits 3-5 +(counted from the LSB) of the insert-and-copy length code. +Given the insert length and copy length codes, the actual insert +and copy lengths can be obtained by reading the number of extra +bits given by the tables above. If the insert-and-copy length code is between 0 and 127, the distance code of the command is set to zero (the last distance reused).