From 83b4c9ebc87d0fddf4e638f13e3af1483912e3a5 Mon Sep 17 00:00:00 2001 From: Terin Stock Date: Tue, 26 Apr 2022 20:30:25 -0700 Subject: [chore] remove vendor --- vendor/codeberg.org/gruf/go-bitutil/pack.go | 85 ----------------------------- 1 file changed, 85 deletions(-) delete mode 100644 vendor/codeberg.org/gruf/go-bitutil/pack.go (limited to 'vendor/codeberg.org/gruf/go-bitutil/pack.go') diff --git a/vendor/codeberg.org/gruf/go-bitutil/pack.go b/vendor/codeberg.org/gruf/go-bitutil/pack.go deleted file mode 100644 index 2a57d3294..000000000 --- a/vendor/codeberg.org/gruf/go-bitutil/pack.go +++ /dev/null @@ -1,85 +0,0 @@ -package bitutil - -// PackInt8s will pack two signed 8bit integers into an unsigned 16bit integer. -func PackInt8s(i1, i2 int8) uint16 { - const bits = 8 - const mask = (1 << bits) - 1 - return uint16(i1)<> bits), int8(i & mask) -} - -// PackInt16s will pack two signed 16bit integers into an unsigned 32bit integer. -func PackInt16s(i1, i2 int16) uint32 { - const bits = 16 - const mask = (1 << bits) - 1 - return uint32(i1)<> bits), int16(i & mask) -} - -// PackInt32s will pack two signed 32bit integers into an unsigned 64bit integer. -func PackInt32s(i1, i2 int32) uint64 { - const bits = 32 - const mask = (1 << bits) - 1 - return uint64(i1)<> bits), int32(i & mask) -} - -// PackUint8s will pack two unsigned 8bit integers into an unsigned 16bit integer. -func PackUint8s(u1, u2 uint8) uint16 { - const bits = 8 - const mask = (1 << bits) - 1 - return uint16(u1)<> bits), uint8(u & mask) -} - -// PackUint16s will pack two unsigned 16bit integers into an unsigned 32bit integer. -func PackUint16s(u1, u2 uint16) uint32 { - const bits = 16 - const mask = (1 << bits) - 1 - return uint32(u1)<> bits), uint16(u & mask) -} - -// PackUint32s will pack two unsigned 32bit integers into an unsigned 64bit integer. -func PackUint32s(u1, u2 uint32) uint64 { - const bits = 32 - const mask = (1 << bits) - 1 - return uint64(u1)<> bits), uint32(u & mask) -} -- cgit v1.2.3