From 63bf3991ef14959983ecd86c406bd941c908157b Mon Sep 17 00:00:00 2001 From: Dan Čermák Date: Thu, 17 Mar 2022 13:40:46 +0100 Subject: vendor containers/storage with https://github.com/containers/storage/pull/1165 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Dan Čermák --- vendor/github.com/klauspost/compress/huff0/bitreader.go | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'vendor/github.com/klauspost/compress/huff0/bitreader.go') 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 -- cgit v1.2.3-54-g00ecf