shift

package module
v0.0.0-...-74c04c8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 5, 2020 License: Apache-2.0 Imports: 1 Imported by: 0

README

shift

Fast bit shift helper

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LeftI16U

func LeftI16U(x int16, n uint) int16

LeftI16U is x << n but where n is always less than the number of bits in int16. This assumption is not checked.

func LeftI16U16

func LeftI16U16(x int16, n uint16) int16

LeftI16U16 is x << n but where n is always less than the number of bits in int16. This assumption is not checked.

func LeftI16U32

func LeftI16U32(x int16, n uint32) int16

LeftI16U32 is x << n but where n is always less than the number of bits in int16. This assumption is not checked.

func LeftI16U64

func LeftI16U64(x int16, n uint64) int16

LeftI16U64 is x << n but where n is always less than the number of bits in int16. This assumption is not checked.

func LeftI16U8

func LeftI16U8(x int16, n uint8) int16

LeftI16U8 is x << n but where n is always less than the number of bits in int16. This assumption is not checked.

func LeftI32U

func LeftI32U(x int32, n uint) int32

LeftI32U is x << n but where n is always less than the number of bits in int32. This assumption is not checked.

func LeftI32U16

func LeftI32U16(x int32, n uint16) int32

LeftI32U16 is x << n but where n is always less than the number of bits in int32. This assumption is not checked.

func LeftI32U32

func LeftI32U32(x int32, n uint32) int32

LeftI32U32 is x << n but where n is always less than the number of bits in int32. This assumption is not checked.

func LeftI32U64

func LeftI32U64(x int32, n uint64) int32

LeftI32U64 is x << n but where n is always less than the number of bits in int32. This assumption is not checked.

func LeftI32U8

func LeftI32U8(x int32, n uint8) int32

LeftI32U8 is x << n but where n is always less than the number of bits in int32. This assumption is not checked.

func LeftI64U

func LeftI64U(x int64, n uint) int64

LeftI64U is x << n but where n is always less than the number of bits in int64. This assumption is not checked.

func LeftI64U16

func LeftI64U16(x int64, n uint16) int64

LeftI64U16 is x << n but where n is always less than the number of bits in int64. This assumption is not checked.

func LeftI64U32

func LeftI64U32(x int64, n uint32) int64

LeftI64U32 is x << n but where n is always less than the number of bits in int64. This assumption is not checked.

func LeftI64U64

func LeftI64U64(x int64, n uint64) int64

LeftI64U64 is x << n but where n is always less than the number of bits in int64. This assumption is not checked.

func LeftI64U8

func LeftI64U8(x int64, n uint8) int64

LeftI64U8 is x << n but where n is always less than the number of bits in int64. This assumption is not checked.

func LeftI8U

func LeftI8U(x int8, n uint) int8

LeftI8U is x << n but where n is always less than the number of bits in int8. This assumption is not checked.

func LeftI8U16

func LeftI8U16(x int8, n uint16) int8

LeftI8U16 is x << n but where n is always less than the number of bits in int8. This assumption is not checked.

func LeftI8U32

func LeftI8U32(x int8, n uint32) int8

LeftI8U32 is x << n but where n is always less than the number of bits in int8. This assumption is not checked.

func LeftI8U64

func LeftI8U64(x int8, n uint64) int8

LeftI8U64 is x << n but where n is always less than the number of bits in int8. This assumption is not checked.

func LeftI8U8

func LeftI8U8(x int8, n uint8) int8

LeftI8U8 is x << n but where n is always less than the number of bits in int8. This assumption is not checked.

func LeftIU

func LeftIU(x int, n uint) int

LeftIU is x << n but where n is always less than the number of bits in int. This assumption is not checked.

func LeftIU16

func LeftIU16(x int, n uint16) int

LeftIU16 is x << n but where n is always less than the number of bits in int. This assumption is not checked.

func LeftIU32

func LeftIU32(x int, n uint32) int

LeftIU32 is x << n but where n is always less than the number of bits in int. This assumption is not checked.

func LeftIU64

func LeftIU64(x int, n uint64) int

LeftIU64 is x << n but where n is always less than the number of bits in int. This assumption is not checked.

func LeftIU8

func LeftIU8(x int, n uint8) int

LeftIU8 is x << n but where n is always less than the number of bits in int. This assumption is not checked.

func LeftU16U

func LeftU16U(x uint16, n uint) uint16

LeftU16U is x << n but where n is always less than the number of bits in uint16. This assumption is not checked.

func LeftU16U16

func LeftU16U16(x uint16, n uint16) uint16

LeftU16U16 is x << n but where n is always less than the number of bits in uint16. This assumption is not checked.

func LeftU16U32

func LeftU16U32(x uint16, n uint32) uint16

LeftU16U32 is x << n but where n is always less than the number of bits in uint16. This assumption is not checked.

func LeftU16U64

func LeftU16U64(x uint16, n uint64) uint16

LeftU16U64 is x << n but where n is always less than the number of bits in uint16. This assumption is not checked.

func LeftU16U8

func LeftU16U8(x uint16, n uint8) uint16

LeftU16U8 is x << n but where n is always less than the number of bits in uint16. This assumption is not checked.

func LeftU32U

func LeftU32U(x uint32, n uint) uint32

LeftU32U is x << n but where n is always less than the number of bits in uint32. This assumption is not checked.

func LeftU32U16

func LeftU32U16(x uint32, n uint16) uint32

LeftU32U16 is x << n but where n is always less than the number of bits in uint32. This assumption is not checked.

func LeftU32U32

func LeftU32U32(x uint32, n uint32) uint32

LeftU32U32 is x << n but where n is always less than the number of bits in uint32. This assumption is not checked.

func LeftU32U64

func LeftU32U64(x uint32, n uint64) uint32

LeftU32U64 is x << n but where n is always less than the number of bits in uint32. This assumption is not checked.

func LeftU32U8

func LeftU32U8(x uint32, n uint8) uint32

LeftU32U8 is x << n but where n is always less than the number of bits in uint32. This assumption is not checked.

func LeftU64U

func LeftU64U(x uint64, n uint) uint64

LeftU64U is x << n but where n is always less than the number of bits in uint64. This assumption is not checked.

func LeftU64U16

func LeftU64U16(x uint64, n uint16) uint64

LeftU64U16 is x << n but where n is always less than the number of bits in uint64. This assumption is not checked.

func LeftU64U32

func LeftU64U32(x uint64, n uint32) uint64

LeftU64U32 is x << n but where n is always less than the number of bits in uint64. This assumption is not checked.

func LeftU64U64

func LeftU64U64(x uint64, n uint64) uint64

LeftU64U64 is x << n but where n is always less than the number of bits in uint64. This assumption is not checked.

func LeftU64U8

func LeftU64U8(x uint64, n uint8) uint64

LeftU64U8 is x << n but where n is always less than the number of bits in uint64. This assumption is not checked.

func LeftU8U

func LeftU8U(x uint8, n uint) uint8

LeftU8U is x << n but where n is always less than the number of bits in uint8. This assumption is not checked.

func LeftU8U16

func LeftU8U16(x uint8, n uint16) uint8

LeftU8U16 is x << n but where n is always less than the number of bits in uint8. This assumption is not checked.

func LeftU8U32

func LeftU8U32(x uint8, n uint32) uint8

LeftU8U32 is x << n but where n is always less than the number of bits in uint8. This assumption is not checked.

func LeftU8U64

func LeftU8U64(x uint8, n uint64) uint8

LeftU8U64 is x << n but where n is always less than the number of bits in uint8. This assumption is not checked.

func LeftU8U8

func LeftU8U8(x uint8, n uint8) uint8

LeftU8U8 is x << n but where n is always less than the number of bits in uint8. This assumption is not checked.

func LeftUU

func LeftUU(x uint, n uint) uint

LeftUU is x << n but where n is always less than the number of bits in uint. This assumption is not checked.

func LeftUU16

func LeftUU16(x uint, n uint16) uint

LeftUU16 is x << n but where n is always less than the number of bits in uint. This assumption is not checked.

func LeftUU32

func LeftUU32(x uint, n uint32) uint

LeftUU32 is x << n but where n is always less than the number of bits in uint. This assumption is not checked.

func LeftUU64

func LeftUU64(x uint, n uint64) uint

LeftUU64 is x << n but where n is always less than the number of bits in uint. This assumption is not checked.

func LeftUU8

func LeftUU8(x uint, n uint8) uint

LeftUU8 is x << n but where n is always less than the number of bits in uint. This assumption is not checked.

func RightI16U

func RightI16U(x int16, n uint) int16

RightI16U is x >> n but where n is always less than the number of bits in int16. This assumption is not checked.

func RightI16U16

func RightI16U16(x int16, n uint16) int16

RightI16U16 is x >> n but where n is always less than the number of bits in int16. This assumption is not checked.

func RightI16U32

func RightI16U32(x int16, n uint32) int16

RightI16U32 is x >> n but where n is always less than the number of bits in int16. This assumption is not checked.

func RightI16U64

func RightI16U64(x int16, n uint64) int16

RightI16U64 is x >> n but where n is always less than the number of bits in int16. This assumption is not checked.

func RightI16U8

func RightI16U8(x int16, n uint8) int16

RightI16U8 is x >> n but where n is always less than the number of bits in int16. This assumption is not checked.

func RightI32U

func RightI32U(x int32, n uint) int32

RightI32U is x >> n but where n is always less than the number of bits in int32. This assumption is not checked.

func RightI32U16

func RightI32U16(x int32, n uint16) int32

RightI32U16 is x >> n but where n is always less than the number of bits in int32. This assumption is not checked.

func RightI32U32

func RightI32U32(x int32, n uint32) int32

RightI32U32 is x >> n but where n is always less than the number of bits in int32. This assumption is not checked.

func RightI32U64

func RightI32U64(x int32, n uint64) int32

RightI32U64 is x >> n but where n is always less than the number of bits in int32. This assumption is not checked.

func RightI32U8

func RightI32U8(x int32, n uint8) int32

RightI32U8 is x >> n but where n is always less than the number of bits in int32. This assumption is not checked.

func RightI64U

func RightI64U(x int64, n uint) int64

RightI64U is x >> n but where n is always less than the number of bits in int64. This assumption is not checked.

func RightI64U16

func RightI64U16(x int64, n uint16) int64

RightI64U16 is x >> n but where n is always less than the number of bits in int64. This assumption is not checked.

func RightI64U32

func RightI64U32(x int64, n uint32) int64

RightI64U32 is x >> n but where n is always less than the number of bits in int64. This assumption is not checked.

func RightI64U64

func RightI64U64(x int64, n uint64) int64

RightI64U64 is x >> n but where n is always less than the number of bits in int64. This assumption is not checked.

func RightI64U8

func RightI64U8(x int64, n uint8) int64

RightI64U8 is x >> n but where n is always less than the number of bits in int64. This assumption is not checked.

func RightI8U

func RightI8U(x int8, n uint) int8

RightI8U is x >> n but where n is always less than the number of bits in int8. This assumption is not checked.

func RightI8U16

func RightI8U16(x int8, n uint16) int8

RightI8U16 is x >> n but where n is always less than the number of bits in int8. This assumption is not checked.

func RightI8U32

func RightI8U32(x int8, n uint32) int8

RightI8U32 is x >> n but where n is always less than the number of bits in int8. This assumption is not checked.

func RightI8U64

func RightI8U64(x int8, n uint64) int8

RightI8U64 is x >> n but where n is always less than the number of bits in int8. This assumption is not checked.

func RightI8U8

func RightI8U8(x int8, n uint8) int8

RightI8U8 is x >> n but where n is always less than the number of bits in int8. This assumption is not checked.

func RightIU

func RightIU(x int, n uint) int

RightIU is x >> n but where n is always less than the number of bits in int. This assumption is not checked.

func RightIU16

func RightIU16(x int, n uint16) int

RightIU16 is x >> n but where n is always less than the number of bits in int. This assumption is not checked.

func RightIU32

func RightIU32(x int, n uint32) int

RightIU32 is x >> n but where n is always less than the number of bits in int. This assumption is not checked.

func RightIU64

func RightIU64(x int, n uint64) int

RightIU64 is x >> n but where n is always less than the number of bits in int. This assumption is not checked.

func RightIU8

func RightIU8(x int, n uint8) int

RightIU8 is x >> n but where n is always less than the number of bits in int. This assumption is not checked.

func RightU16U

func RightU16U(x uint16, n uint) uint16

RightU16U is x >> n but where n is always less than the number of bits in uint16. This assumption is not checked.

func RightU16U16

func RightU16U16(x uint16, n uint16) uint16

RightU16U16 is x >> n but where n is always less than the number of bits in uint16. This assumption is not checked.

func RightU16U32

func RightU16U32(x uint16, n uint32) uint16

RightU16U32 is x >> n but where n is always less than the number of bits in uint16. This assumption is not checked.

func RightU16U64

func RightU16U64(x uint16, n uint64) uint16

RightU16U64 is x >> n but where n is always less than the number of bits in uint16. This assumption is not checked.

func RightU16U8

func RightU16U8(x uint16, n uint8) uint16

RightU16U8 is x >> n but where n is always less than the number of bits in uint16. This assumption is not checked.

func RightU32U

func RightU32U(x uint32, n uint) uint32

RightU32U is x >> n but where n is always less than the number of bits in uint32. This assumption is not checked.

func RightU32U16

func RightU32U16(x uint32, n uint16) uint32

RightU32U16 is x >> n but where n is always less than the number of bits in uint32. This assumption is not checked.

func RightU32U32

func RightU32U32(x uint32, n uint32) uint32

RightU32U32 is x >> n but where n is always less than the number of bits in uint32. This assumption is not checked.

func RightU32U64

func RightU32U64(x uint32, n uint64) uint32

RightU32U64 is x >> n but where n is always less than the number of bits in uint32. This assumption is not checked.

func RightU32U8

func RightU32U8(x uint32, n uint8) uint32

RightU32U8 is x >> n but where n is always less than the number of bits in uint32. This assumption is not checked.

func RightU64U

func RightU64U(x uint64, n uint) uint64

RightU64U is x >> n but where n is always less than the number of bits in uint64. This assumption is not checked.

func RightU64U16

func RightU64U16(x uint64, n uint16) uint64

RightU64U16 is x >> n but where n is always less than the number of bits in uint64. This assumption is not checked.

func RightU64U32

func RightU64U32(x uint64, n uint32) uint64

RightU64U32 is x >> n but where n is always less than the number of bits in uint64. This assumption is not checked.

func RightU64U64

func RightU64U64(x uint64, n uint64) uint64

RightU64U64 is x >> n but where n is always less than the number of bits in uint64. This assumption is not checked.

func RightU64U8

func RightU64U8(x uint64, n uint8) uint64

RightU64U8 is x >> n but where n is always less than the number of bits in uint64. This assumption is not checked.

func RightU8U

func RightU8U(x uint8, n uint) uint8

RightU8U is x >> n but where n is always less than the number of bits in uint8. This assumption is not checked.

func RightU8U16

func RightU8U16(x uint8, n uint16) uint8

RightU8U16 is x >> n but where n is always less than the number of bits in uint8. This assumption is not checked.

func RightU8U32

func RightU8U32(x uint8, n uint32) uint8

RightU8U32 is x >> n but where n is always less than the number of bits in uint8. This assumption is not checked.

func RightU8U64

func RightU8U64(x uint8, n uint64) uint8

RightU8U64 is x >> n but where n is always less than the number of bits in uint8. This assumption is not checked.

func RightU8U8

func RightU8U8(x uint8, n uint8) uint8

RightU8U8 is x >> n but where n is always less than the number of bits in uint8. This assumption is not checked.

func RightUU

func RightUU(x uint, n uint) uint

RightUU is x >> n but where n is always less than the number of bits in uint. This assumption is not checked.

func RightUU16

func RightUU16(x uint, n uint16) uint

RightUU16 is x >> n but where n is always less than the number of bits in uint. This assumption is not checked.

func RightUU32

func RightUU32(x uint, n uint32) uint

RightUU32 is x >> n but where n is always less than the number of bits in uint. This assumption is not checked.

func RightUU64

func RightUU64(x uint, n uint64) uint

RightUU64 is x >> n but where n is always less than the number of bits in uint. This assumption is not checked.

func RightUU8

func RightUU8(x uint, n uint8) uint

RightUU8 is x >> n but where n is always less than the number of bits in uint. This assumption is not checked.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL