mirror of
https://github.com/facebook/zstd
synced 2026-08-22 22:32:07 -04:00
Clarify that the presence of a value with weight 1 is required
This commit is contained in:
parent
8193250615
commit
dc84e35138
1 changed files with 1 additions and 1 deletions
|
|
@ -1252,7 +1252,7 @@ Number_of_Bits = Weight ? (Max_Number_of_Bits + 1 - Weight) : 0
|
|||
```
|
||||
When a literal value is not present, it receives a `Weight` of 0.
|
||||
The least frequent symbol receives a `Weight` of 1.
|
||||
Consequently, the `Weight` 1 is necessarily present.
|
||||
If no symbol has a `Weight` of 1, then the data is considered corrupted.
|
||||
The most frequent symbol receives a `Weight` anywhere between 1 and 11 (max).
|
||||
The last symbol's `Weight` is deduced from previously retrieved Weights,
|
||||
by completing to the nearest power of 2. It's necessarily non 0.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue