summaryrefslogtreecommitdiff
path: root/vendor/github.com/klauspost/compress/huff0/bitreader.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2022-03-22 12:10:27 +0100
committerGitHub <noreply@github.com>2022-03-22 12:10:27 +0100
commitb726d75f20822b4a23a679acd94696b924a6a374 (patch)
tree218a39354834d34a53fdeaa6b5be472c70a5bd23 /vendor/github.com/klauspost/compress/huff0/bitreader.go
parente034db16bf68c06c1ecf63addd033fcbd83090e3 (diff)
parent63bf3991ef14959983ecd86c406bd941c908157b (diff)
downloadpodman-b726d75f20822b4a23a679acd94696b924a6a374.tar.gz
podman-b726d75f20822b4a23a679acd94696b924a6a374.tar.bz2
podman-b726d75f20822b4a23a679acd94696b924a6a374.zip
Merge pull request #13536 from dcermak/storage-autodetect-mount_program
Storage autodetect mount program
Diffstat (limited to 'vendor/github.com/klauspost/compress/huff0/bitreader.go')
-rw-r--r--vendor/github.com/klauspost/compress/huff0/bitreader.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/vendor/github.com/klauspost/compress/huff0/bitreader.go b/vendor/github.com/klauspost/compress/huff0/bitreader.go
index 03562db16..451160edd 100644
--- a/vendor/github.com/klauspost/compress/huff0/bitreader.go
+++ b/vendor/github.com/klauspost/compress/huff0/bitreader.go
@@ -165,6 +165,11 @@ func (b *bitReaderShifted) peekBitsFast(n uint8) uint16 {
return uint16(b.value >> ((64 - n) & 63))
}
+// peekTopBits(n) is equvialent to peekBitFast(64 - n)
+func (b *bitReaderShifted) peekTopBits(n uint8) uint16 {
+ return uint16(b.value >> n)
+}
+
func (b *bitReaderShifted) advance(n uint8) {
b.bitsRead += n
b.value <<= n & 63