From f3e2d36d6455e6d16aba833bdf64806377c8178f Mon Sep 17 00:00:00 2001 From: kim <89579420+NyaaaWhatsUpDoc@users.noreply.github.com> Date: Thu, 26 Sep 2024 19:23:41 +0000 Subject: [chore] update go-sched pkg (#3357) * update go-sched to v1.2.4 which removes some now unused dependencies * whoops, remove test output --- 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