diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2021-01-28 14:39:31 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-28 14:39:31 -0500 |
commit | 2ee034c1e6ddd9918b97ddea2fd3e6388ec8f60b (patch) | |
tree | 77d46e8e793088ae9dbd0c74999d31e26951a629 /vendor/github.com/ulikunitz/xz/lzma/distcodec.go | |
parent | a4c255a939cf340978efd9cb070951029237c8cf (diff) | |
parent | 75c3b33899954e7a0925426b38fd1084d521c3a0 (diff) | |
download | podman-2ee034c1e6ddd9918b97ddea2fd3e6388ec8f60b.tar.gz podman-2ee034c1e6ddd9918b97ddea2fd3e6388ec8f60b.tar.bz2 podman-2ee034c1e6ddd9918b97ddea2fd3e6388ec8f60b.zip |
Merge pull request #9140 from containers/dependabot/go_modules/github.com/containers/image/v5-5.10.0
Bump github.com/containers/image/v5 from 5.9.0 to 5.10.0
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 { |