diff options
author | Daniel J Walsh <dwalsh@redhat.com> | 2021-02-01 15:12:23 -0500 |
---|---|---|
committer | Daniel J Walsh <dwalsh@redhat.com> | 2021-02-02 14:31:02 -0500 |
commit | 06fe589a0f65c05324431b1e4fb541f926ec2a6f (patch) | |
tree | 8ef7bfadbb41f9af1bac12b6a2605592c6d02a4b /vendor/github.com/ulikunitz/xz/lzma/distcodec.go | |
parent | 978c005869eeca40959e6d6d4a52c5ba9059f827 (diff) | |
download | podman-06fe589a0f65c05324431b1e4fb541f926ec2a6f.tar.gz podman-06fe589a0f65c05324431b1e4fb541f926ec2a6f.tar.bz2 podman-06fe589a0f65c05324431b1e4fb541f926ec2a6f.zip |
Bump to containers/common v0.33.3
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
Diffstat (limited to 'vendor/github.com/ulikunitz/xz/lzma/distcodec.go')
-rw-r--r-- | vendor/github.com/ulikunitz/xz/lzma/distcodec.go | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/vendor/github.com/ulikunitz/xz/lzma/distcodec.go b/vendor/github.com/ulikunitz/xz/lzma/distcodec.go index 69871c04a..9ed486d27 100644 --- a/vendor/github.com/ulikunitz/xz/lzma/distcodec.go +++ b/vendor/github.com/ulikunitz/xz/lzma/distcodec.go @@ -20,8 +20,6 @@ const ( posSlotBits = 6 // number of align bits alignBits = 4 - // maximum position slot - maxPosSlot = 63 ) // distCodec provides encoding and decoding of distance values. @@ -45,20 +43,6 @@ func (dc *distCodec) deepcopy(src *distCodec) { dc.alignCodec.deepcopy(&src.alignCodec) } -// distBits returns the number of bits required to encode dist. -func distBits(dist uint32) int { - if dist < startPosModel { - return 6 - } - // slot s > 3, dist d - // s = 2(bits(d)-1) + bit(d, bits(d)-2) - // s>>1 = bits(d)-1 - // bits(d) = 32-nlz32(d) - // s>>1=31-nlz32(d) - // n = 5 + (s>>1) = 36 - nlz32(d) - return 36 - nlz32(dist) -} - // newDistCodec creates a new distance codec. func (dc *distCodec) init() { for i := range dc.posSlotCodecs { |