Documentation
¶
Index ¶
- Constants
- func AbsFixInt(i int) int
- func AbsFixInt8(i int8) int8
- func AbsFixInt16(i int16) int16
- func AbsFixInt32(i int32) int32
- func AbsFixInt64(i int64) int64
- func AbsInt(i int) int
- func AbsInt8(i int8) int8
- func AbsInt16(i int16) int16
- func AbsInt32(i int32) int32
- func AbsInt64(i int64) int64
- func AntiAbsInt(i int) int
- func AntiAbsInt8(i int8) int8
- func AntiAbsInt16(i int16) int16
- func AntiAbsInt32(i int32) int32
- func AntiAbsInt64(i int64) int64
- func BtoInt(b bool) int
- func BtoInt8(b bool) int8
- func BtoInt16(b bool) int16
- func BtoInt32(b bool) int32
- func BtoInt64(b bool) int64
- func DivideCeilInt(a, b int) int
- func DivideCeilInt8(a, b int8) int8
- func DivideCeilInt16(a, b int16) int16
- func DivideCeilInt32(a, b int32) int32
- func DivideCeilInt64(a, b int64) int64
- func DivideRoundFixInt(a, b int) int
- func DivideRoundFixInt8(a, b int8) int8
- func DivideRoundFixInt16(a, b int16) int16
- func DivideRoundFixInt32(a, b int32) int32
- func DivideRoundFixInt64(a, b int64) int64
- func DivideRoundInt(a, b int) (c int)
- func DivideRoundInt8(a, b int8) (c int8)
- func DivideRoundInt16(a, b int16) (c int16)
- func DivideRoundInt32(a, b int32) (c int32)
- func DivideRoundInt64(a, b int64) (c int64)
- func EqualInt(a, b int) int
- func EqualInt8(a, b int8) int8
- func EqualInt16(a, b int16) int16
- func EqualInt32(a, b int32) int32
- func EqualInt64(a, b int64) int64
- func GreaterInt(a, b int) int
- func GreaterInt8(a, b int8) int8
- func GreaterInt16(a, b int16) int16
- func GreaterInt32(a, b int32) int32
- func GreaterInt64(a, b int64) int64
- func LessInt(a, b int) int
- func LessInt8(a, b int8) int8
- func LessInt16(a, b int16) int16
- func LessInt32(a, b int32) int32
- func LessInt64(a, b int64) int64
- func Max2Int(a, b int) int
- func Max2Int8(a, b int8) int8
- func Max2Int16(a, b int16) int16
- func Max2Int32(a, b int32) int32
- func Max2Int64(a, b int64) int64
- func Max2Uint(a, b uint) uint
- func Max2Uint8(a, b uint8) uint8
- func Max2Uint16(a, b uint16) uint16
- func Max2Uint32(a, b uint32) uint32
- func Max2Uint64(a, b uint64) uint64
- func Min2Int(a, b int) int
- func Min2Int8(a, b int8) int8
- func Min2Int16(a, b int16) int16
- func Min2Int32(a, b int32) int32
- func Min2Int64(a, b int64) int64
- func Min2Uint(a, b uint) uint
- func Min2Uint8(a, b uint8) uint8
- func Min2Uint16(a, b uint16) uint16
- func Min2Uint32(a, b uint32) uint32
- func Min2Uint64(a, b uint64) uint64
- func NegativeInt(i int) int
- func NegativeInt8(i int8) int8
- func NegativeInt16(i int16) int16
- func NegativeInt32(i int32) int32
- func NegativeInt64(i int64) int64
- func NotEqualInt(a, b int) int
- func NotEqualInt8(a, b int8) int8
- func NotEqualInt16(a, b int16) int16
- func NotEqualInt32(a, b int32) int32
- func NotEqualInt64(a, b int64) int64
- func NotGreaterInt(a, b int) int
- func NotGreaterInt8(a, b int8) int8
- func NotGreaterInt16(a, b int16) int16
- func NotGreaterInt32(a, b int32) int32
- func NotGreaterInt64(a, b int64) int64
- func NotInt(i int) int
- func NotInt8(i int8) int8
- func NotInt16(i int16) int16
- func NotInt32(i int32) int32
- func NotInt64(i int64) int64
- func NotLessInt(a, b int) int
- func NotLessInt8(a, b int8) int8
- func NotLessInt16(a, b int16) int16
- func NotLessInt32(a, b int32) int32
- func NotLessInt64(a, b int64) int64
- func NotNegativeInt(i int) int
- func NotNegativeInt8(i int8) int8
- func NotNegativeInt16(i int16) int16
- func NotNegativeInt32(i int32) int32
- func NotNegativeInt64(i int64) int64
- func NotPositiveInt(i int) int
- func NotPositiveInt8(i int8) int8
- func NotPositiveInt16(i int16) int16
- func NotPositiveInt32(i int32) int32
- func NotPositiveInt64(i int64) int64
- func NotSameSignInt(a, b int) int
- func NotSameSignInt8(a, b int8) int8
- func NotSameSignInt16(a, b int16) int16
- func NotSameSignInt32(a, b int32) int32
- func NotSameSignInt64(a, b int64) int64
- func NotZeroInt(i int) int
- func NotZeroInt8(i int8) int8
- func NotZeroInt16(i int16) int16
- func NotZeroInt32(i int32) int32
- func NotZeroInt64(i int64) int64
- func PositiveInt(i int) int
- func PositiveInt8(i int8) int8
- func PositiveInt16(i int16) int16
- func PositiveInt32(i int32) int32
- func PositiveInt64(i int64) int64
- func PowInt(a, b int) int
- func PowInt8(a, b int8) int8
- func PowInt16(a, b int16) int16
- func PowInt32(a, b int32) int32
- func PowInt64(a, b int64) int64
- func PowModInt(a, b, m int) int
- func PowModInt8(a, b, m int8) int8
- func PowModInt16(a, b, m int16) int16
- func PowModInt32(a, b, m int32) int32
- func PowModInt64(a, b, m int64) int64
- func Round(f float64) int64
- func SameSignInt(a, b int) int
- func SameSignInt8(a, b int8) int8
- func SameSignInt16(a, b int16) int16
- func SameSignInt32(a, b int32) int32
- func SameSignInt64(a, b int64) int64
- func SignInt(i int) int
- func SignInt8(i int8) int8
- func SignInt16(i int16) int16
- func SignInt32(i int32) int32
- func SignInt64(i int64) int64
- func ZeroInt(i int) int
- func ZeroInt8(i int8) int8
- func ZeroInt16(i int16) int16
- func ZeroInt32(i int32) int32
- func ZeroInt64(i int64) int64
Constants ¶
const ( // UintBytes contains size of uint in bytes as untyped constant UintBytes = 1 << _log // UintBits contains size of uint in bits as untyped constant UintBits = IntBytes << 3 // MaxUint is uint maximum value as untyped constant MaxUint = (1 << IntBits) - 1 // MinUint is uint minimum value as untyped constant (always 0) MinUint = 0 // IntBytes contains size of int in bytes as untyped constant IntBytes = UintBytes // IntBits contains size of int in bits as untyped constant IntBits = UintBits // MaxInt is int maximum value as untyped constant MaxInt = MaxUint >> 1 // MinInt is int minimum value as untyped constant MinInt = -MaxInt - 1 )
const ( Uint8Bytes = 1 Uint8Bits = Uint8Bytes * 8 Int8Bytes = Uint8Bytes Int8Bits = Uint8Bits MaxUint8 = (1 << Uint8Bits) - 1 MinUint8 = 0 MaxInt8 = MaxUint8 >> 1 MinInt8 = -MaxInt8 - 1 )
const ( Uint16Bytes = 2 Uint16Bits = Uint16Bytes * 8 Int16Bytes = Uint16Bytes Int16Bits = Uint16Bits MaxUint16 = (1 << Uint16Bits) - 1 MinUint16 = 0 MaxInt16 = MaxUint16 >> 1 MinInt16 = -MaxInt16 - 1 )
const ( Uint32Bytes = 4 Uint32Bits = Uint32Bytes * 8 Int32Bytes = Uint32Bytes Int32Bits = Uint32Bits MaxUint32 = (1 << Uint32Bits) - 1 MinUint32 = 0 MaxInt32 = MaxUint32 >> 1 MinInt32 = -MaxInt32 - 1 )
const ( Uint64Bytes = 8 Uint64Bits = Uint64Bytes * 8 Int64Bytes = Uint64Bytes Int64Bits = Uint64Bits MaxUint64 = (1 << Uint64Bits) - 1 MinUint64 = 0 MaxInt64 = MaxUint64 >> 1 MinInt64 = -MaxInt64 - 1 )
Variables ¶
This section is empty.
Functions ¶
func AbsFixInt8 ¶
func AbsFixInt16 ¶
func AbsFixInt32 ¶
func AbsFixInt64 ¶
func AntiAbsInt ¶
func AntiAbsInt8 ¶
func AntiAbsInt16 ¶
func AntiAbsInt32 ¶
func AntiAbsInt64 ¶
func DivideCeilInt ¶
DivideCeilInt divide a to b and round result to nearest not less number. A.k.a. round up, round towards plus infinity. -3 / -2 = 2 -3 / 2 = -1
func DivideCeilInt8 ¶
DivideCeilInt8 divide a to b and round result to nearest not less number. A.k.a. round up, round towards plus infinity. -3 / -2 = 2 -3 / 2 = -1
func DivideCeilInt16 ¶
DivideCeilInt16 divide a to b and round result to nearest not less number. A.k.a. round up, round towards plus infinity. -3 / -2 = 2 -3 / 2 = -1
func DivideCeilInt32 ¶
DivideCeilInt32 divide a to b and round result to nearest not less number. A.k.a. round up, round towards plus infinity. -3 / -2 = 2 -3 / 2 = -1
func DivideCeilInt64 ¶
DivideCeilInt64 divide a to b and round result to nearest not less number. A.k.a. round up, round towards plus infinity. -3 / -2 = 2 -3 / 2 = -1
func DivideRoundFixInt ¶
func DivideRoundFixInt8 ¶
func DivideRoundFixInt16 ¶
func DivideRoundFixInt32 ¶
func DivideRoundFixInt64 ¶
func DivideRoundInt ¶
DivideRoundInt divide a to b and round result to nearest. -3 / -2 = 2 -3 / 2 = -2
func DivideRoundInt8 ¶
DivideRoundInt8 divide a to b and round result to nearest. -3 / -2 = 2 -3 / 2 = -2
func DivideRoundInt16 ¶
DivideRoundInt16 divide a to b and round result to nearest. -3 / -2 = 2 -3 / 2 = -2
func DivideRoundInt32 ¶
DivideRoundInt32 divide a to b and round result to nearest. -3 / -2 = 2 -3 / 2 = -2
func DivideRoundInt64 ¶
DivideRoundInt64 divide a to b and round result to nearest. -3 / -2 = 2 -3 / 2 = -2
func Max2Uint16 ¶
func Max2Uint32 ¶
func Max2Uint64 ¶
func Min2Uint16 ¶
func Min2Uint32 ¶
func Min2Uint64 ¶
func NegativeInt ¶
func NegativeInt8 ¶
func NegativeInt16 ¶
func NegativeInt32 ¶
func NegativeInt64 ¶
func NotEqualInt ¶
func NotEqualInt8 ¶
func NotEqualInt16 ¶
func NotEqualInt32 ¶
func NotEqualInt64 ¶
func NotNegativeInt ¶
func NotNegativeInt8 ¶
func NotNegativeInt16 ¶
func NotNegativeInt32 ¶
func NotNegativeInt64 ¶
func NotPositiveInt ¶
func NotPositiveInt8 ¶
func NotPositiveInt16 ¶
func NotPositiveInt32 ¶
func NotPositiveInt64 ¶
func NotSameSignInt ¶
func NotSameSignInt8 ¶
func NotSameSignInt16 ¶
func NotSameSignInt32 ¶
func NotSameSignInt64 ¶
func NotZeroInt ¶
func NotZeroInt8 ¶
func NotZeroInt16 ¶
func NotZeroInt32 ¶
func NotZeroInt64 ¶
func PositiveInt ¶
func PositiveInt8 ¶
func PositiveInt16 ¶
func PositiveInt32 ¶
func PositiveInt64 ¶
func PowModInt8 ¶
Modular integer power: compute a**b mod m using binary powering algorithm
func PowModInt16 ¶
Modular integer power: compute a**b mod m using binary powering algorithm
func PowModInt32 ¶
Modular integer power: compute a**b mod m using binary powering algorithm
func PowModInt64 ¶
Modular integer power: compute a**b mod m using binary powering algorithm
func SameSignInt ¶
func SameSignInt8 ¶
func SameSignInt16 ¶
func SameSignInt32 ¶
func SameSignInt64 ¶
Types ¶
This section is empty.