summaryrefslogtreecommitdiff
path: root/vendor/github.com/ulikunitz/xz/lzma/distcodec.go
diff options
context:
space:
mode:
authordependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>2021-01-28 09:17:40 +0000
committerDaniel J Walsh <dwalsh@redhat.com>2021-01-28 04:51:57 -0500
commit75c3b33899954e7a0925426b38fd1084d521c3a0 (patch)
treeff5dafd9eaedf43c87f0a868a779792492d84539 /vendor/github.com/ulikunitz/xz/lzma/distcodec.go
parent9d59daa7ccaea526a1aa742fadab537e77a51330 (diff)
downloadpodman-75c3b33899954e7a0925426b38fd1084d521c3a0.tar.gz
podman-75c3b33899954e7a0925426b38fd1084d521c3a0.tar.bz2
podman-75c3b33899954e7a0925426b38fd1084d521c3a0.zip
Bump github.com/containers/image/v5 from 5.9.0 to 5.10.0
Bumps [github.com/containers/image/v5](https://github.com/containers/image) from 5.9.0 to 5.10.0. - [Release notes](https://github.com/containers/image/releases) - [Commits](https://github.com/containers/image/compare/v5.9.0...v5.10.0) Signed-off-by: dependabot-preview[bot] <support@dependabot.com> 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.go16
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 {