mirror of
https://github.com/facebook/zstd.git
synced 2024-12-03 03:06:45 +08:00
Add definition of "log2sup" function
This commit is contained in:
parent
b38d87b476
commit
324cce4996
@ -1083,7 +1083,8 @@ It depends on :
|
||||
Presuming an `Accuracy_Log` of 8,
|
||||
and presuming 100 probabilities points have already been distributed,
|
||||
the decoder may read any value from `0` to `256 - 100 + 1 == 157` (inclusive).
|
||||
Therefore, it may read up to `log2sup(157) == 8` bits.
|
||||
Therefore, it may read up to `log2sup(157) == 8` bits, where `log2sup(N)`
|
||||
is the smallest integer `T` that satisfies `(1 << T) > N`.
|
||||
|
||||
- Value decoded : small values use 1 less bit :
|
||||
__example__ :
|
||||
|
Loading…
Reference in New Issue
Block a user