Documentation
¶
Overview ¶
ints package handles integer types of various sizes that are not included in the built-in types.
Index ¶
- type Int8
- func (a Int8) Add(b Int8) Int8
- func (a Int8) And(b Int8) Int8
- func (a Int8) AndNot(b Int8) Int8
- func (a Int8) Append(dst []byte, base int) []byte
- func (a Int8) AppendText(dst []byte) ([]byte, error)
- func (a Int8) Cmp(b Int8) int
- func (a Int8) Div(b Int8) Int8
- func (a Int8) DivMod(b Int8) (Int8, Int8)
- func (a Int8) Format(s fmt.State, verb rune)
- func (a Int8) Int8() Int8
- func (a Int8) Int16() Int16
- func (a Int8) Int32() Int32
- func (a Int8) Int64() Int64
- func (a Int8) Int128() Int128
- func (a Int8) Int256() Int256
- func (a Int8) Int512() Int512
- func (a Int8) Int1024() Int1024
- func (a Int8) IsZero() bool
- func (a Int8) Lsh(i uint) Int8
- func (a Int8) Mod(b Int8) Int8
- func (a Int8) Mul(b Int8) Int8
- func (a Int8) Neg() Int8
- func (a Int8) Not() Int8
- func (a Int8) Or(b Int8) Int8
- func (a Int8) Quo(b Int8) Int8
- func (a Int8) QuoRem(b Int8) (Int8, Int8)
- func (a Int8) Rem(b Int8) Int8
- func (a Int8) Rsh(i uint) Int8
- func (a Int8) Sign() int
- func (a Int8) String() string
- func (a Int8) Sub(b Int8) Int8
- func (a Int8) Text(base int) string
- func (a Int8) Xor(b Int8) Int8
- type Int16
- func (a Int16) Add(b Int16) Int16
- func (a Int16) And(b Int16) Int16
- func (a Int16) AndNot(b Int16) Int16
- func (a Int16) Append(dst []byte, base int) []byte
- func (a Int16) AppendText(dst []byte) ([]byte, error)
- func (a Int16) Cmp(b Int16) int
- func (a Int16) Div(b Int16) Int16
- func (a Int16) DivMod(b Int16) (Int16, Int16)
- func (a Int16) Format(s fmt.State, verb rune)
- func (a Int16) Int8() Int8
- func (a Int16) Int16() Int16
- func (a Int16) Int32() Int32
- func (a Int16) Int64() Int64
- func (a Int16) Int128() Int128
- func (a Int16) Int256() Int256
- func (a Int16) Int512() Int512
- func (a Int16) Int1024() Int1024
- func (a Int16) IsZero() bool
- func (a Int16) Lsh(i uint) Int16
- func (a Int16) Mod(b Int16) Int16
- func (a Int16) Mul(b Int16) Int16
- func (a Int16) Neg() Int16
- func (a Int16) Not() Int16
- func (a Int16) Or(b Int16) Int16
- func (a Int16) Quo(b Int16) Int16
- func (a Int16) QuoRem(b Int16) (Int16, Int16)
- func (a Int16) Rem(b Int16) Int16
- func (a Int16) Rsh(i uint) Int16
- func (a Int16) Sign() int
- func (a Int16) String() string
- func (a Int16) Sub(b Int16) Int16
- func (a Int16) Text(base int) string
- func (a Int16) Xor(b Int16) Int16
- type Int32
- func (a Int32) Add(b Int32) Int32
- func (a Int32) And(b Int32) Int32
- func (a Int32) AndNot(b Int32) Int32
- func (a Int32) Append(dst []byte, base int) []byte
- func (a Int32) AppendText(dst []byte) ([]byte, error)
- func (a Int32) Cmp(b Int32) int
- func (a Int32) Div(b Int32) Int32
- func (a Int32) DivMod(b Int32) (Int32, Int32)
- func (a Int32) Format(s fmt.State, verb rune)
- func (a Int32) Int8() Int8
- func (a Int32) Int16() Int16
- func (a Int32) Int32() Int32
- func (a Int32) Int64() Int64
- func (a Int32) Int128() Int128
- func (a Int32) Int256() Int256
- func (a Int32) Int512() Int512
- func (a Int32) Int1024() Int1024
- func (a Int32) IsZero() bool
- func (a Int32) Lsh(i uint) Int32
- func (a Int32) Mod(b Int32) Int32
- func (a Int32) Mul(b Int32) Int32
- func (a Int32) Neg() Int32
- func (a Int32) Not() Int32
- func (a Int32) Or(b Int32) Int32
- func (a Int32) Quo(b Int32) Int32
- func (a Int32) QuoRem(b Int32) (Int32, Int32)
- func (a Int32) Rem(b Int32) Int32
- func (a Int32) Rsh(i uint) Int32
- func (a Int32) Sign() int
- func (a Int32) String() string
- func (a Int32) Sub(b Int32) Int32
- func (a Int32) Text(base int) string
- func (a Int32) Xor(b Int32) Int32
- type Int64
- func (a Int64) Add(b Int64) Int64
- func (a Int64) And(b Int64) Int64
- func (a Int64) AndNot(b Int64) Int64
- func (a Int64) Append(dst []byte, base int) []byte
- func (a Int64) AppendText(dst []byte) ([]byte, error)
- func (a Int64) Cmp(b Int64) int
- func (a Int64) Div(b Int64) Int64
- func (a Int64) DivMod(b Int64) (Int64, Int64)
- func (a Int64) Format(s fmt.State, verb rune)
- func (a Int64) Int8() Int8
- func (a Int64) Int16() Int16
- func (a Int64) Int32() Int32
- func (a Int64) Int64() Int64
- func (a Int64) Int128() Int128
- func (a Int64) Int256() Int256
- func (a Int64) Int512() Int512
- func (a Int64) Int1024() Int1024
- func (a Int64) IsZero() bool
- func (a Int64) Lsh(i uint) Int64
- func (a Int64) Mod(b Int64) Int64
- func (a Int64) Mul(b Int64) Int64
- func (a Int64) Neg() Int64
- func (a Int64) Not() Int64
- func (a Int64) Or(b Int64) Int64
- func (a Int64) Quo(b Int64) Int64
- func (a Int64) QuoRem(b Int64) (Int64, Int64)
- func (a Int64) Rem(b Int64) Int64
- func (a Int64) Rsh(i uint) Int64
- func (a Int64) Sign() int
- func (a Int64) String() string
- func (a Int64) Sub(b Int64) Int64
- func (a Int64) Text(base int) string
- func (a Int64) Xor(b Int64) Int64
- type Int128
- func (a Int128) Add(b Int128) Int128
- func (a Int128) And(b Int128) Int128
- func (a Int128) AndNot(b Int128) Int128
- func (a Int128) Append(dst []byte, base int) []byte
- func (a Int128) AppendText(dst []byte) ([]byte, error)
- func (a Int128) Cmp(b Int128) int
- func (a Int128) Div(b Int128) Int128
- func (a Int128) DivMod(b Int128) (Int128, Int128)
- func (a Int128) Format(s fmt.State, verb rune)
- func (a Int128) Int8() Int8
- func (a Int128) Int16() Int16
- func (a Int128) Int32() Int32
- func (a Int128) Int64() Int64
- func (a Int128) Int128() Int128
- func (a Int128) Int256() Int256
- func (a Int128) Int512() Int512
- func (a Int128) Int1024() Int1024
- func (a Int128) IsZero() bool
- func (a Int128) Lsh(i uint) Int128
- func (a Int128) Mod(b Int128) Int128
- func (a Int128) Mul(b Int128) Int128
- func (a Int128) Neg() Int128
- func (a Int128) Not() Int128
- func (a Int128) Or(b Int128) Int128
- func (a Int128) Quo(b Int128) Int128
- func (a Int128) QuoRem(b Int128) (Int128, Int128)
- func (a Int128) Rem(b Int128) Int128
- func (a Int128) Rsh(i uint) Int128
- func (a Int128) Sign() int
- func (a Int128) String() string
- func (a Int128) Sub(b Int128) Int128
- func (a Int128) Text(base int) string
- func (a Int128) Xor(b Int128) Int128
- type Int256
- func (a Int256) Add(b Int256) Int256
- func (a Int256) And(b Int256) Int256
- func (a Int256) AndNot(b Int256) Int256
- func (a Int256) Append(dst []byte, base int) []byte
- func (a Int256) AppendText(dst []byte) ([]byte, error)
- func (a Int256) Cmp(b Int256) int
- func (a Int256) Div(b Int256) Int256
- func (a Int256) DivMod(b Int256) (Int256, Int256)
- func (a Int256) Format(s fmt.State, verb rune)
- func (a Int256) Int8() Int8
- func (a Int256) Int16() Int16
- func (a Int256) Int32() Int32
- func (a Int256) Int64() Int64
- func (a Int256) Int128() Int128
- func (a Int256) Int256() Int256
- func (a Int256) Int512() Int512
- func (a Int256) Int1024() Int1024
- func (a Int256) IsZero() bool
- func (a Int256) Lsh(i uint) Int256
- func (a Int256) Mod(b Int256) Int256
- func (a Int256) Mul(b Int256) Int256
- func (a Int256) Neg() Int256
- func (a Int256) Not() Int256
- func (a Int256) Or(b Int256) Int256
- func (a Int256) Quo(b Int256) Int256
- func (a Int256) QuoRem(b Int256) (Int256, Int256)
- func (a Int256) Rem(b Int256) Int256
- func (a Int256) Rsh(i uint) Int256
- func (a Int256) Sign() int
- func (a Int256) String() string
- func (a Int256) Sub(b Int256) Int256
- func (a Int256) Text(base int) string
- func (a Int256) Xor(b Int256) Int256
- type Int512
- func (a Int512) Add(b Int512) Int512
- func (a Int512) And(b Int512) Int512
- func (a Int512) AndNot(b Int512) Int512
- func (a Int512) Append(dst []byte, base int) []byte
- func (a Int512) AppendText(dst []byte) ([]byte, error)
- func (a Int512) Cmp(b Int512) int
- func (a Int512) Div(b Int512) Int512
- func (a Int512) DivMod(b Int512) (Int512, Int512)
- func (a Int512) Format(s fmt.State, verb rune)
- func (a Int512) Int8() Int8
- func (a Int512) Int16() Int16
- func (a Int512) Int32() Int32
- func (a Int512) Int64() Int64
- func (a Int512) Int128() Int128
- func (a Int512) Int256() Int256
- func (a Int512) Int512() Int512
- func (a Int512) Int1024() Int1024
- func (a Int512) IsZero() bool
- func (a Int512) Lsh(i uint) Int512
- func (a Int512) Mod(b Int512) Int512
- func (a Int512) Mul(b Int512) Int512
- func (a Int512) Neg() Int512
- func (a Int512) Not() Int512
- func (a Int512) Or(b Int512) Int512
- func (a Int512) Quo(b Int512) Int512
- func (a Int512) QuoRem(b Int512) (Int512, Int512)
- func (a Int512) Rem(b Int512) Int512
- func (a Int512) Rsh(i uint) Int512
- func (a Int512) Sign() int
- func (a Int512) String() string
- func (a Int512) Sub(b Int512) Int512
- func (a Int512) Text(base int) string
- func (a Int512) Xor(b Int512) Int512
- type Int1024
- func (a Int1024) Add(b Int1024) Int1024
- func (a Int1024) And(b Int1024) Int1024
- func (a Int1024) AndNot(b Int1024) Int1024
- func (a Int1024) Append(dst []byte, base int) []byte
- func (a Int1024) AppendText(dst []byte) ([]byte, error)
- func (a Int1024) Cmp(b Int1024) int
- func (a Int1024) Div(b Int1024) Int1024
- func (a Int1024) DivMod(b Int1024) (Int1024, Int1024)
- func (a Int1024) Format(s fmt.State, verb rune)
- func (a Int1024) Int8() Int8
- func (a Int1024) Int16() Int16
- func (a Int1024) Int32() Int32
- func (a Int1024) Int64() Int64
- func (a Int1024) Int128() Int128
- func (a Int1024) Int256() Int256
- func (a Int1024) Int512() Int512
- func (a Int1024) Int1024() Int1024
- func (a Int1024) IsZero() bool
- func (a Int1024) Lsh(i uint) Int1024
- func (a Int1024) Mod(b Int1024) Int1024
- func (a Int1024) Mul(b Int1024) Int1024
- func (a Int1024) Neg() Int1024
- func (a Int1024) Not() Int1024
- func (a Int1024) Or(b Int1024) Int1024
- func (a Int1024) Quo(b Int1024) Int1024
- func (a Int1024) QuoRem(b Int1024) (Int1024, Int1024)
- func (a Int1024) Rem(b Int1024) Int1024
- func (a Int1024) Rsh(i uint) Int1024
- func (a Int1024) Sign() int
- func (a Int1024) String() string
- func (a Int1024) Sub(b Int1024) Int1024
- func (a Int1024) Text(base int) string
- func (a Int1024) Xor(b Int1024) Int1024
- type Uint8
- func (a Uint8) Add(b Uint8) Uint8
- func (a Uint8) And(b Uint8) Uint8
- func (a Uint8) AndNot(b Uint8) Uint8
- func (a Uint8) Append(dst []byte, base int) []byte
- func (a Uint8) AppendText(dst []byte) ([]byte, error)
- func (a Uint8) BitLen() int
- func (a Uint8) Cmp(b Uint8) int
- func (a Uint8) Div(b Uint8) Uint8
- func (a Uint8) DivMod(b Uint8) (Uint8, Uint8)
- func (a Uint8) Format(s fmt.State, verb rune)
- func (a Uint8) IsZero() bool
- func (a Uint8) LeadingZeros() int
- func (a Uint8) Lsh(i uint) Uint8
- func (a Uint8) Mod(b Uint8) Uint8
- func (a Uint8) Mul(b Uint8) Uint8
- func (a Uint8) Mul16(b Uint8) Uint16
- func (a Uint8) Neg() Uint8
- func (a Uint8) Not() Uint8
- func (a Uint8) Or(b Uint8) Uint8
- func (a Uint8) Quo(b Uint8) Uint8
- func (a Uint8) QuoRem(b Uint8) (Uint8, Uint8)
- func (a Uint8) Rem(b Uint8) Uint8
- func (a Uint8) Rsh(i uint) Uint8
- func (a Uint8) Sign() int
- func (a Uint8) String() string
- func (a Uint8) Sub(b Uint8) Uint8
- func (a Uint8) Text(base int) string
- func (a Uint8) TrailingZeros() int
- func (a Uint8) Uint8() Uint8
- func (a Uint8) Uint16() Uint16
- func (a Uint8) Uint32() Uint32
- func (a Uint8) Uint64() Uint64
- func (a Uint8) Uint128() Uint128
- func (a Uint8) Uint256() Uint256
- func (a Uint8) Uint512() Uint512
- func (a Uint8) Uint1024() Uint1024
- func (a Uint8) Xor(b Uint8) Uint8
- type Uint16
- func (a Uint16) Add(b Uint16) Uint16
- func (a Uint16) And(b Uint16) Uint16
- func (a Uint16) AndNot(b Uint16) Uint16
- func (a Uint16) Append(dst []byte, base int) []byte
- func (a Uint16) AppendText(dst []byte) ([]byte, error)
- func (a Uint16) BitLen() int
- func (a Uint16) Cmp(b Uint16) int
- func (a Uint16) Div(b Uint16) Uint16
- func (a Uint16) DivMod(b Uint16) (Uint16, Uint16)
- func (a Uint16) Format(s fmt.State, verb rune)
- func (a Uint16) IsZero() bool
- func (a Uint16) LeadingZeros() int
- func (a Uint16) Lsh(i uint) Uint16
- func (a Uint16) Mod(b Uint16) Uint16
- func (a Uint16) Mul(b Uint16) Uint16
- func (a Uint16) Mul32(b Uint16) Uint32
- func (a Uint16) Neg() Uint16
- func (a Uint16) Not() Uint16
- func (a Uint16) Or(b Uint16) Uint16
- func (a Uint16) Quo(b Uint16) Uint16
- func (a Uint16) QuoRem(b Uint16) (Uint16, Uint16)
- func (a Uint16) Rem(b Uint16) Uint16
- func (a Uint16) Rsh(i uint) Uint16
- func (a Uint16) Sign() int
- func (a Uint16) String() string
- func (a Uint16) Sub(b Uint16) Uint16
- func (a Uint16) Text(base int) string
- func (a Uint16) TrailingZeros() int
- func (a Uint16) Uint8() Uint8
- func (a Uint16) Uint16() Uint16
- func (a Uint16) Uint32() Uint32
- func (a Uint16) Uint64() Uint64
- func (a Uint16) Uint128() Uint128
- func (a Uint16) Uint256() Uint256
- func (a Uint16) Uint512() Uint512
- func (a Uint16) Uint1024() Uint1024
- func (a Uint16) Xor(b Uint16) Uint16
- type Uint32
- func (a Uint32) Add(b Uint32) Uint32
- func (a Uint32) And(b Uint32) Uint32
- func (a Uint32) AndNot(b Uint32) Uint32
- func (a Uint32) Append(dst []byte, base int) []byte
- func (a Uint32) AppendText(dst []byte) ([]byte, error)
- func (a Uint32) BitLen() int
- func (a Uint32) Cmp(b Uint32) int
- func (a Uint32) Div(b Uint32) Uint32
- func (a Uint32) DivMod(b Uint32) (Uint32, Uint32)
- func (a Uint32) Format(s fmt.State, verb rune)
- func (a Uint32) IsZero() bool
- func (a Uint32) LeadingZeros() int
- func (a Uint32) Lsh(i uint) Uint32
- func (a Uint32) Mod(b Uint32) Uint32
- func (a Uint32) Mul(b Uint32) Uint32
- func (a Uint32) Mul64(b Uint32) Uint64
- func (a Uint32) Neg() Uint32
- func (a Uint32) Not() Uint32
- func (a Uint32) Or(b Uint32) Uint32
- func (a Uint32) Quo(b Uint32) Uint32
- func (a Uint32) QuoRem(b Uint32) (Uint32, Uint32)
- func (a Uint32) Rem(b Uint32) Uint32
- func (a Uint32) Rsh(i uint) Uint32
- func (a Uint32) Sign() int
- func (a Uint32) String() string
- func (a Uint32) Sub(b Uint32) Uint32
- func (a Uint32) Text(base int) string
- func (a Uint32) TrailingZeros() int
- func (a Uint32) Uint8() Uint8
- func (a Uint32) Uint16() Uint16
- func (a Uint32) Uint32() Uint32
- func (a Uint32) Uint64() Uint64
- func (a Uint32) Uint128() Uint128
- func (a Uint32) Uint256() Uint256
- func (a Uint32) Uint512() Uint512
- func (a Uint32) Uint1024() Uint1024
- func (a Uint32) Xor(b Uint32) Uint32
- type Uint64
- func (a Uint64) Add(b Uint64) Uint64
- func (a Uint64) And(b Uint64) Uint64
- func (a Uint64) AndNot(b Uint64) Uint64
- func (a Uint64) Append(dst []byte, base int) []byte
- func (a Uint64) AppendText(dst []byte) ([]byte, error)
- func (a Uint64) BitLen() int
- func (a Uint64) Cmp(b Uint64) int
- func (a Uint64) Div(b Uint64) Uint64
- func (a Uint64) DivMod(b Uint64) (Uint64, Uint64)
- func (a Uint64) Format(s fmt.State, verb rune)
- func (a Uint64) IsZero() bool
- func (a Uint64) LeadingZeros() int
- func (a Uint64) Lsh(i uint) Uint64
- func (a Uint64) Mod(b Uint64) Uint64
- func (a Uint64) Mul(b Uint64) Uint64
- func (a Uint64) Mul128(b Uint64) Uint128
- func (a Uint64) Neg() Uint64
- func (a Uint64) Not() Uint64
- func (a Uint64) Or(b Uint64) Uint64
- func (a Uint64) Quo(b Uint64) Uint64
- func (a Uint64) QuoRem(b Uint64) (Uint64, Uint64)
- func (a Uint64) Rem(b Uint64) Uint64
- func (a Uint64) Rsh(i uint) Uint64
- func (a Uint64) Sign() int
- func (a Uint64) String() string
- func (a Uint64) Sub(b Uint64) Uint64
- func (a Uint64) Text(base int) string
- func (a Uint64) TrailingZeros() int
- func (a Uint64) Uint8() Uint8
- func (a Uint64) Uint16() Uint16
- func (a Uint64) Uint32() Uint32
- func (a Uint64) Uint64() Uint64
- func (a Uint64) Uint128() Uint128
- func (a Uint64) Uint256() Uint256
- func (a Uint64) Uint512() Uint512
- func (a Uint64) Uint1024() Uint1024
- func (a Uint64) Xor(b Uint64) Uint64
- type Uint128
- func (a Uint128) Add(b Uint128) Uint128
- func (a Uint128) And(b Uint128) Uint128
- func (a Uint128) AndNot(b Uint128) Uint128
- func (a Uint128) Append(dst []byte, base int) []byte
- func (a Uint128) AppendText(dst []byte) ([]byte, error)
- func (a Uint128) BitLen() int
- func (a Uint128) Cmp(b Uint128) int
- func (a Uint128) Div(b Uint128) Uint128
- func (a Uint128) DivMod(b Uint128) (Uint128, Uint128)
- func (a Uint128) Format(s fmt.State, verb rune)
- func (a Uint128) IsZero() bool
- func (a Uint128) LeadingZeros() int
- func (a Uint128) Lsh(i uint) Uint128
- func (a Uint128) Mod(b Uint128) Uint128
- func (a Uint128) Mul(b Uint128) Uint128
- func (a Uint128) Mul256(b Uint128) Uint256
- func (a Uint128) Neg() Uint128
- func (a Uint128) Not() Uint128
- func (a Uint128) Or(b Uint128) Uint128
- func (a Uint128) Quo(b Uint128) Uint128
- func (a Uint128) QuoRem(b Uint128) (Uint128, Uint128)
- func (a Uint128) Rem(b Uint128) Uint128
- func (a Uint128) Rsh(i uint) Uint128
- func (a Uint128) Sign() int
- func (a Uint128) String() string
- func (a Uint128) Sub(b Uint128) Uint128
- func (a Uint128) Text(base int) string
- func (a Uint128) TrailingZeros() int
- func (a Uint128) Uint8() Uint8
- func (a Uint128) Uint16() Uint16
- func (a Uint128) Uint32() Uint32
- func (a Uint128) Uint64() Uint64
- func (a Uint128) Uint128() Uint128
- func (a Uint128) Uint256() Uint256
- func (a Uint128) Uint512() Uint512
- func (a Uint128) Uint1024() Uint1024
- func (a Uint128) Xor(b Uint128) Uint128
- type Uint256
- func (a Uint256) Add(b Uint256) Uint256
- func (a Uint256) And(b Uint256) Uint256
- func (a Uint256) AndNot(b Uint256) Uint256
- func (a Uint256) Append(dst []byte, base int) []byte
- func (a Uint256) AppendText(dst []byte) ([]byte, error)
- func (a Uint256) BitLen() int
- func (a Uint256) Cmp(b Uint256) int
- func (a Uint256) Div(b Uint256) Uint256
- func (a Uint256) DivMod(b Uint256) (Uint256, Uint256)
- func (a Uint256) Format(s fmt.State, verb rune)
- func (a Uint256) IsZero() bool
- func (a Uint256) LeadingZeros() int
- func (a Uint256) Lsh(i uint) Uint256
- func (a Uint256) Mod(b Uint256) Uint256
- func (a Uint256) Mul(b Uint256) Uint256
- func (a Uint256) Mul512(b Uint256) Uint512
- func (a Uint256) Neg() Uint256
- func (a Uint256) Not() Uint256
- func (a Uint256) Or(b Uint256) Uint256
- func (a Uint256) Quo(b Uint256) Uint256
- func (a Uint256) QuoRem(b Uint256) (Uint256, Uint256)
- func (a Uint256) Rem(b Uint256) Uint256
- func (a Uint256) Rsh(i uint) Uint256
- func (a Uint256) Sign() int
- func (a Uint256) String() string
- func (a Uint256) Sub(b Uint256) Uint256
- func (a Uint256) Text(base int) string
- func (a Uint256) TrailingZeros() int
- func (a Uint256) Uint8() Uint8
- func (a Uint256) Uint16() Uint16
- func (a Uint256) Uint32() Uint32
- func (a Uint256) Uint64() Uint64
- func (a Uint256) Uint128() Uint128
- func (a Uint256) Uint256() Uint256
- func (a Uint256) Uint512() Uint512
- func (a Uint256) Uint1024() Uint1024
- func (a Uint256) Xor(b Uint256) Uint256
- type Uint512
- func (a Uint512) Add(b Uint512) Uint512
- func (a Uint512) And(b Uint512) Uint512
- func (a Uint512) AndNot(b Uint512) Uint512
- func (a Uint512) Append(dst []byte, base int) []byte
- func (a Uint512) AppendText(dst []byte) ([]byte, error)
- func (a Uint512) BitLen() int
- func (a Uint512) Cmp(b Uint512) int
- func (a Uint512) Div(b Uint512) Uint512
- func (a Uint512) DivMod(b Uint512) (Uint512, Uint512)
- func (a Uint512) Format(s fmt.State, verb rune)
- func (a Uint512) IsZero() bool
- func (a Uint512) LeadingZeros() int
- func (a Uint512) Lsh(i uint) Uint512
- func (a Uint512) Mod(b Uint512) Uint512
- func (a Uint512) Mul(b Uint512) Uint512
- func (a Uint512) Mul1024(b Uint512) Uint1024
- func (a Uint512) Neg() Uint512
- func (a Uint512) Not() Uint512
- func (a Uint512) Or(b Uint512) Uint512
- func (a Uint512) Quo(b Uint512) Uint512
- func (a Uint512) QuoRem(b Uint512) (Uint512, Uint512)
- func (a Uint512) Rem(b Uint512) Uint512
- func (a Uint512) Rsh(i uint) Uint512
- func (a Uint512) Sign() int
- func (a Uint512) String() string
- func (a Uint512) Sub(b Uint512) Uint512
- func (a Uint512) Text(base int) string
- func (a Uint512) TrailingZeros() int
- func (a Uint512) Uint8() Uint8
- func (a Uint512) Uint16() Uint16
- func (a Uint512) Uint32() Uint32
- func (a Uint512) Uint64() Uint64
- func (a Uint512) Uint128() Uint128
- func (a Uint512) Uint256() Uint256
- func (a Uint512) Uint512() Uint512
- func (a Uint512) Uint1024() Uint1024
- func (a Uint512) Xor(b Uint512) Uint512
- type Uint1024
- func (a Uint1024) Add(b Uint1024) Uint1024
- func (a Uint1024) And(b Uint1024) Uint1024
- func (a Uint1024) AndNot(b Uint1024) Uint1024
- func (a Uint1024) Append(dst []byte, base int) []byte
- func (a Uint1024) AppendText(dst []byte) ([]byte, error)
- func (a Uint1024) BitLen() int
- func (a Uint1024) Cmp(b Uint1024) int
- func (a Uint1024) Div(b Uint1024) Uint1024
- func (a Uint1024) DivMod(b Uint1024) (Uint1024, Uint1024)
- func (a Uint1024) Format(s fmt.State, verb rune)
- func (a Uint1024) IsZero() bool
- func (a Uint1024) LeadingZeros() int
- func (a Uint1024) Lsh(i uint) Uint1024
- func (a Uint1024) Mod(b Uint1024) Uint1024
- func (a Uint1024) Mul(b Uint1024) Uint1024
- func (a Uint1024) Neg() Uint1024
- func (a Uint1024) Not() Uint1024
- func (a Uint1024) Or(b Uint1024) Uint1024
- func (a Uint1024) Quo(b Uint1024) Uint1024
- func (a Uint1024) QuoRem(b Uint1024) (Uint1024, Uint1024)
- func (a Uint1024) Rem(b Uint1024) Uint1024
- func (a Uint1024) Rsh(i uint) Uint1024
- func (a Uint1024) Sign() int
- func (a Uint1024) String() string
- func (a Uint1024) Sub(b Uint1024) Uint1024
- func (a Uint1024) Text(base int) string
- func (a Uint1024) TrailingZeros() int
- func (a Uint1024) Uint8() Uint8
- func (a Uint1024) Uint16() Uint16
- func (a Uint1024) Uint32() Uint32
- func (a Uint1024) Uint64() Uint64
- func (a Uint1024) Uint128() Uint128
- func (a Uint1024) Uint256() Uint256
- func (a Uint1024) Uint512() Uint512
- func (a Uint1024) Uint1024() Uint1024
- func (a Uint1024) Xor(b Uint1024) Uint1024
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Int8 ¶
type Int8 int8
Int8 is a type that represents an 8-bit signed integer. It is an alias for the built-in int8 type.
func (Int8) Add ¶
Add returns the sum a+b.
This function's execution time does not depend on the inputs.
func (Int8) Append ¶
Append appends the string representation of a, as generated by a.Text(base), to buf and returns the extended buffer.
func (Int8) AppendText ¶
AppendText implements the encoding.TextAppender interface.
func (Int8) Cmp ¶
Cmp returns the comparison result of a and b. It returns -1 if a < b, 0 if a == b, and 1 if a > b.
func (Int8) Div ¶
Div returns the quotient a/b for b != 0. If b == 0, a division-by-zero run-time panic occurs. Div implements Euclidean division (unlike Go); see Int8.DivMod for more details.
func (Int8) DivMod ¶
DivMod returns the quotient and remainder of a/b. DivMod implements Euclidean division and modulus (unlike Go):
q = a div b such that m = a - b*q with 0 <= m < |b|
(See Raymond T. Boute, “The Euclidean definition of the functions div and mod”. ACM Transactions on Programming Languages and Systems (TOPLAS), 14(2):127-144, New York, NY, USA, 4/1992. ACM press.) See Int8.QuoRem for T-division and modulus (like Go).
func (Int8) Lsh ¶
Lsh returns the logical left shift a<<i.
This function's execution time does not depend on the inputs.
func (Int8) Mod ¶
Mod returns the remainder a%b for b != 0. If b == 0, a division-by-zero run-time panic occurs. Mod implements Euclidean division (unlike Go); see Int8.DivMod for more details.
func (Int8) Mul ¶
Mul returns the product a*b.
This function's execution time does not depend on the inputs.
func (Int8) Neg ¶
Neg returns the negation of a.
This function's execution time does not depend on the inputs.
func (Int8) Quo ¶
Quo returns the quotient a/b for b != 0. If b == 0, a division-by-zero run-time panic occurs. Quo implements T-division (like Go); see Int8.QuoRem for more details.
func (Int8) QuoRem ¶
QuoRem returns the quotient and remainder of a/b. QuoRem implements T-division and modulus (like Go):
q = a/b with the result truncated to zero r = a - b*q
(See Daan Leijen, “Division and Modulus for Computer Scientists”.) See Int8.DivMod for Euclidean division and modulus (unlike Go).
func (Int8) Rem ¶
Rem returns the remainder a%b for b != 0. If b == 0, a division-by-zero run-time panic occurs. Rem implements T-division (like Go); see Int8.QuoRem for more details.
func (Int8) Rsh ¶
Rsh returns the arithmetic right shift a>>i, preserving the sign bit.
This function's execution time does not depend on the inputs.
func (Int8) Sub ¶
Sub returns the difference a-b.
This function's execution time does not depend on the inputs.
func (Int8) Text ¶
Text returns the string representation of a in the given base. Base must be between 2 and 62, inclusive. The result uses the lower-case letters 'a' to 'z' for digit values 10 to 35, and the upper-case letters 'A' to 'Z' for digit values 36 to 61. No prefix (such as "0x") is added to the string.
type Int16 ¶
type Int16 int16
Int16 is a type that represents an 16-bit signed integer. It is an alias for the built-in int16 type.
func (Int16) Add ¶
Add returns the sum a+b.
This function's execution time does not depend on the inputs.
func (Int16) Append ¶
Append appends the string representation of a, as generated by a.Text(base), to buf and returns the extended buffer.
func (Int16) AppendText ¶
AppendText implements the encoding.TextAppender interface.
func (Int16) Cmp ¶
Cmp returns the comparison result of a and b. It returns -1 if a < b, 0 if a == b, and 1 if a > b.
func (Int16) Div ¶
Div returns the quotient a/b for b != 0. If b == 0, a division-by-zero run-time panic occurs. Div implements Euclidean division (unlike Go); see Int16.DivMod for more details.
func (Int16) DivMod ¶
DivMod returns the quotient and remainder of a/b. DivMod implements Euclidean division and modulus (unlike Go):
q = a div b such that m = a - b*q with 0 <= m < |b|
(See Raymond T. Boute, “The Euclidean definition of the functions div and mod”. ACM Transactions on Programming Languages and Systems (TOPLAS), 14(2):127-144, New York, NY, USA, 4/1992. ACM press.) See Int16.QuoRem for T-division and modulus (like Go).
func (Int16) Format ¶
Format implements fmt.Formatter.
func (Int16) Lsh ¶
Lsh returns the logical left shift a<<i.
This function's execution time does not depend on the inputs.
func (Int16) Mod ¶
Mod returns the remainder a%b for b != 0. If b == 0, a division-by-zero run-time panic occurs. Mod implements Euclidean division (unlike Go); see Int16.DivMod for more details.
func (Int16) Mul ¶
Mul returns the product a*b.
This function's execution time does not depend on the inputs.
func (Int16) Neg ¶
Neg returns the negation of a.
This function's execution time does not depend on the inputs.
func (Int16) Quo ¶
Quo returns the quotient a/b for b != 0. If b == 0, a division-by-zero run-time panic occurs. Quo implements T-division (like Go); see Int16.QuoRem for more details.
func (Int16) QuoRem ¶
QuoRem returns the quotient and remainder of a/b. QuoRem implements T-division and modulus (like Go):
q = a/b with the result truncated to zero r = a - b*q
(See Daan Leijen, “Division and Modulus for Computer Scientists”.) See Int16.DivMod for Euclidean division and modulus (unlike Go).
func (Int16) Rem ¶
Rem returns the remainder a%b for b != 0. If b == 0, a division-by-zero run-time panic occurs. Rem implements T-division (like Go); see Int16.QuoRem for more details.
func (Int16) Rsh ¶
Rsh returns the arithmetic right shift a>>i, preserving the sign bit.
This function's execution time does not depend on the inputs.
func (Int16) Sign ¶
Sign returns the sign of a. It returns 1 if a > 0, -1 if a < 0, and 0 if a == 0.
func (Int16) Sub ¶
Sub returns the difference a-b.
This function's execution time does not depend on the inputs.
func (Int16) Text ¶
Text returns the string representation of a in the given base. Base must be between 2 and 62, inclusive. The result uses the lower-case letters 'a' to 'z' for digit values 10 to 35, and the upper-case letters 'A' to 'Z' for digit values 36 to 61. No prefix (such as "0x") is added to the string.
type Int32 ¶
type Int32 int32
Int32 is a type that represents an 32-bit signed integer. It is an alias for the built-in int32 type.
func (Int32) Add ¶
Add returns the sum a+b.
This function's execution time does not depend on the inputs.
func (Int32) Append ¶
Append appends the string representation of a, as generated by a.Text(base), to buf and returns the extended buffer.
func (Int32) AppendText ¶
AppendText implements the encoding.TextAppender interface.
func (Int32) Cmp ¶
Cmp returns the comparison result of a and b. It returns -1 if a < b, 0 if a == b, and 1 if a > b.
func (Int32) Div ¶
Div returns the quotient a/b for b != 0. If b == 0, a division-by-zero run-time panic occurs. Div implements Euclidean division (unlike Go); see Int32.DivMod for more details.
func (Int32) DivMod ¶
DivMod returns the quotient and remainder of a/b. DivMod implements Euclidean division and modulus (unlike Go):
q = a div b such that m = a - b*q with 0 <= m < |b|
(See Raymond T. Boute, “The Euclidean definition of the functions div and mod”. ACM Transactions on Programming Languages and Systems (TOPLAS), 14(2):127-144, New York, NY, USA, 4/1992. ACM press.) See Int32.QuoRem for T-division and modulus (like Go).
func (Int32) Format ¶
Format implements fmt.Formatter.
func (Int32) Lsh ¶
Lsh returns the logical left shift a<<i.
This function's execution time does not depend on the inputs.
func (Int32) Mod ¶
Mod returns the remainder a%b for b != 0. If b == 0, a division-by-zero run-time panic occurs. Mod implements Euclidean division (unlike Go); see Int32.DivMod for more details.
func (Int32) Mul ¶
Mul returns the product a*b.
This function's execution time does not depend on the inputs.
func (Int32) Neg ¶
Neg returns the negation of a.
This function's execution time does not depend on the inputs.
func (Int32) Quo ¶
Quo returns the quotient a/b for b != 0. If b == 0, a division-by-zero run-time panic occurs. Quo implements T-division (like Go); see Int32.QuoRem for more details.
func (Int32) QuoRem ¶
QuoRem returns the quotient and remainder of a/b. QuoRem implements T-division and modulus (like Go):
q = a/b with the result truncated to zero r = a - b*q
(See Daan Leijen, “Division and Modulus for Computer Scientists”.) See Int32.DivMod for Euclidean division and modulus (unlike Go).
func (Int32) Rem ¶
Rem returns the remainder a%b for b != 0. If b == 0, a division-by-zero run-time panic occurs. Rem implements T-division (like Go); see Int32.QuoRem for more details.
func (Int32) Rsh ¶
Rsh returns the arithmetic right shift a>>i, preserving the sign bit.
This function's execution time does not depend on the inputs.
func (Int32) Sign ¶
Sign returns the sign of a. It returns 1 if a > 0, -1 if a < 0, and 0 if a == 0.
func (Int32) Sub ¶
Sub returns the difference a-b.
This function's execution time does not depend on the inputs.
func (Int32) Text ¶
Text returns the string representation of a in the given base. Base must be between 2 and 62, inclusive. The result uses the lower-case letters 'a' to 'z' for digit values 10 to 35, and the upper-case letters 'A' to 'Z' for digit values 36 to 61. No prefix (such as "0x") is added to the string.
type Int64 ¶
type Int64 int64
Int64 is a type that represents an 64-bit signed integer. It is an alias for the built-in int64 type.
func (Int64) Add ¶
Add returns the sum a+b.
This function's execution time does not depend on the inputs.
func (Int64) Append ¶
Append appends the string representation of a, as generated by a.Text(base), to buf and returns the extended buffer.
func (Int64) AppendText ¶
AppendText implements the encoding.TextAppender interface.
func (Int64) Cmp ¶
Cmp returns the comparison result of a and b. It returns -1 if a < b, 0 if a == b, and 1 if a > b.
func (Int64) Div ¶
Div returns the quotient a/b for b != 0. If b == 0, a division-by-zero run-time panic occurs. Div implements Euclidean division (unlike Go); see Int64.DivMod for more details.
func (Int64) DivMod ¶
DivMod returns the quotient and remainder of a/b. DivMod implements Euclidean division and modulus (unlike Go):
q = a div b such that m = a - b*q with 0 <= m < |b|
(See Raymond T. Boute, “The Euclidean definition of the functions div and mod”. ACM Transactions on Programming Languages and Systems (TOPLAS), 14(2):127-144, New York, NY, USA, 4/1992. ACM press.) See Int64.QuoRem for T-division and modulus (like Go).
func (Int64) Format ¶
Format implements fmt.Formatter.
func (Int64) Lsh ¶
Lsh returns the logical left shift a<<i.
This function's execution time does not depend on the inputs.
func (Int64) Mod ¶
Mod returns the remainder a%b for b != 0. If b == 0, a division-by-zero run-time panic occurs. Mod implements Euclidean division (unlike Go); see Int64.DivMod for more details.
func (Int64) Mul ¶
Mul returns the product a*b.
This function's execution time does not depend on the inputs.
func (Int64) Neg ¶
Neg returns the negation of a.
This function's execution time does not depend on the inputs.
func (Int64) Quo ¶
Quo returns the quotient a/b for b != 0. If b == 0, a division-by-zero run-time panic occurs. Quo implements T-division (like Go); see Int64.QuoRem for more details.
func (Int64) QuoRem ¶
QuoRem returns the quotient and remainder of a/b. QuoRem implements T-division and modulus (like Go):
q = a/b with the result truncated to zero r = a - b*q
(See Daan Leijen, “Division and Modulus for Computer Scientists”.) See Int64.DivMod for Euclidean division and modulus (unlike Go).
func (Int64) Rem ¶
Rem returns the remainder a%b for b != 0. If b == 0, a division-by-zero run-time panic occurs. Rem implements T-division (like Go); see Int64.QuoRem for more details.
func (Int64) Rsh ¶
Rsh returns the arithmetic right shift a>>i, preserving the sign bit.
This function's execution time does not depend on the inputs.
func (Int64) Sign ¶
Sign returns the sign of a. It returns 1 if a > 0, -1 if a < 0, and 0 if a == 0.
func (Int64) Sub ¶
Sub returns the difference a-b.
This function's execution time does not depend on the inputs.
func (Int64) Text ¶
Text returns the string representation of a in the given base. Base must be between 2 and 62, inclusive. The result uses the lower-case letters 'a' to 'z' for digit values 10 to 35, and the upper-case letters 'A' to 'Z' for digit values 36 to 61. No prefix (such as "0x") is added to the string.
type Int128 ¶
type Int128 [2]uint64
Int128 is a type that represents an 128-bit signed integer.
func (Int128) Add ¶
Add returns the sum a+b.
This function's execution time does not depend on the inputs.
func (Int128) Append ¶
Append appends the string representation of a, as generated by a.Text(base), to buf and returns the extended buffer.
func (Int128) AppendText ¶
AppendText implements the encoding.TextAppender interface.
func (Int128) Cmp ¶
Cmp returns the comparison result of a and b. It returns -1 if a < b, 0 if a == b, and 1 if a > b.
func (Int128) Div ¶
Div returns the quotient a/b for b != 0. If b == 0, a division-by-zero run-time panic occurs. Div implements Euclidean division (unlike Go); see Int128.DivMod for more details.
func (Int128) DivMod ¶
DivMod returns the quotient and remainder of a/b. DivMod implements Euclidean division and modulus (unlike Go):
q = a div b such that m = a - b*q with 0 <= m < |b|
(See Raymond T. Boute, “The Euclidean definition of the functions div and mod”. ACM Transactions on Programming Languages and Systems (TOPLAS), 14(2):127-144, New York, NY, USA, 4/1992. ACM press.) See Int128.QuoRem for T-division and modulus (like Go).
func (Int128) Format ¶
Format implements fmt.Formatter.
func (Int128) Lsh ¶
Lsh returns the logical left shift a<<i.
This function's execution time does not depend on the inputs.
func (Int128) Mod ¶
Mod returns the remainder a%b for b != 0. If b == 0, a division-by-zero run-time panic occurs. Mod implements Euclidean division (unlike Go); see Int128.DivMod for more details.
func (Int128) Neg ¶
Neg returns the negation of a.
This function's execution time does not depend on the inputs.
func (Int128) Quo ¶
Quo returns the quotient a/b for b != 0. If b == 0, a division-by-zero run-time panic occurs. Quo implements T-division (like Go); see Int128.QuoRem for more details.
func (Int128) QuoRem ¶
QuoRem returns the quotient and remainder of a/b. QuoRem implements T-division and modulus (like Go):
q = a/b with the result truncated to zero r = a - b*q
(See Daan Leijen, “Division and Modulus for Computer Scientists”.) See Int128.DivMod for Euclidean division and modulus (unlike Go).
func (Int128) Rem ¶
Rem returns the remainder a%b for b != 0. If b == 0, a division-by-zero run-time panic occurs. Rem implements T-division (like Go); see Int128.QuoRem for more details.
func (Int128) Rsh ¶
Rsh returns the arithmetic right shift a>>i, preserving the sign bit.
This function's execution time does not depend on the inputs.
func (Int128) Sign ¶
Sign returns the sign of a. It returns 1 if a > 0, -1 if a < 0, and 0 if a == 0.
func (Int128) Sub ¶
Sub returns the difference a-b.
This function's execution time does not depend on the inputs.
func (Int128) Text ¶
Text returns the string representation of a in the given base. Base must be between 2 and 62, inclusive. The result uses the lower-case letters 'a' to 'z' for digit values 10 to 35, and the upper-case letters 'A' to 'Z' for digit values 36 to 61. No prefix (such as "0x") is added to the string.
type Int256 ¶
type Int256 [4]uint64
Int256 is a type that represents an 256-bit signed integer.
func (Int256) Add ¶
Add returns the sum a+b.
This function's execution time does not depend on the inputs.
func (Int256) Append ¶
Append appends the string representation of a, as generated by a.Text(base), to buf and returns the extended buffer.
func (Int256) AppendText ¶
AppendText implements the encoding.TextAppender interface.
func (Int256) Div ¶
Div returns the quotient a/b for b != 0. If b == 0, a division-by-zero run-time panic occurs. Div implements Euclidean division (unlike Go); see Int256.DivMod for more details.
func (Int256) DivMod ¶
DivMod returns the quotient and remainder of a/b. DivMod implements Euclidean division and modulus (unlike Go):
q = a div b such that m = a - b*q with 0 <= m < |b|
(See Raymond T. Boute, “The Euclidean definition of the functions div and mod”. ACM Transactions on Programming Languages and Systems (TOPLAS), 14(2):127-144, New York, NY, USA, 4/1992. ACM press.) See Int256.QuoRem for T-division and modulus (like Go).
func (Int256) Format ¶
Format implements fmt.Formatter.
func (Int256) Lsh ¶
Lsh returns the logical left shift a<<i.
This function's execution time does not depend on the inputs.
func (Int256) Mod ¶
Mod returns the remainder a%b for b != 0. If b == 0, a division-by-zero run-time panic occurs. Mod implements Euclidean division (unlike Go); see Int256.DivMod for more details.
func (Int256) Neg ¶
Neg returns the negation of a.
This function's execution time does not depend on the inputs.
func (Int256) Quo ¶
Quo returns the quotient a/b for b != 0. If b == 0, a division-by-zero run-time panic occurs. Quo implements T-division (like Go); see Int256.QuoRem for more details.
func (Int256) QuoRem ¶
QuoRem returns the quotient and remainder of a/b. QuoRem implements T-division and modulus (like Go):
q = a/b with the result truncated to zero r = a - b*q
(See Daan Leijen, “Division and Modulus for Computer Scientists”.) See Int256.DivMod for Euclidean division and modulus (unlike Go).
func (Int256) Rem ¶
Rem returns the remainder a%b for b != 0. If b == 0, a division-by-zero run-time panic occurs. Rem implements T-division (like Go); see Int256.QuoRem for more details.
func (Int256) Rsh ¶
Rsh returns the arithmetic right shift a>>i, preserving the sign bit.
This function's execution time does not depend on the inputs.
func (Int256) Sign ¶
Sign returns the sign of a. It returns 1 if a > 0, -1 if a < 0, and 0 if a == 0.
func (Int256) Sub ¶
Sub returns the difference a-b.
This function's execution time does not depend on the inputs.
func (Int256) Text ¶
Text returns the string representation of a in the given base. Base must be between 2 and 62, inclusive. The result uses the lower-case letters 'a' to 'z' for digit values 10 to 35, and the upper-case letters 'A' to 'Z' for digit values 36 to 61. No prefix (such as "0x") is added to the string.
type Int512 ¶
type Int512 [8]uint64
Int512 is a type that represents an 512-bit signed integer.
func (Int512) Add ¶
Add returns the sum a+b.
This function's execution time does not depend on the inputs.
func (Int512) Append ¶
Append appends the string representation of a, as generated by a.Text(base), to buf and returns the extended buffer.
func (Int512) AppendText ¶
AppendText implements the encoding.TextAppender interface.
func (Int512) Cmp ¶
Cmp returns the comparison result of a and b. It returns -1 if a < b, 0 if a == b, and 1 if a > b.
func (Int512) Div ¶
Div returns the quotient a/b for b != 0. If b == 0, a division-by-zero run-time panic occurs. Div implements Euclidean division (unlike Go); see Int512.DivMod for more details.
func (Int512) DivMod ¶
DivMod returns the quotient and remainder of a/b. DivMod implements Euclidean division and modulus (unlike Go):
q = a div b such that m = a - b*q with 0 <= m < |b|
(See Raymond T. Boute, “The Euclidean definition of the functions div and mod”. ACM Transactions on Programming Languages and Systems (TOPLAS), 14(2):127-144, New York, NY, USA, 4/1992. ACM press.) See Int512.QuoRem for T-division and modulus (like Go).
func (Int512) Format ¶
Format implements fmt.Formatter.
func (Int512) Lsh ¶
Lsh returns the logical left shift a<<i.
This function's execution time does not depend on the inputs.
func (Int512) Mod ¶
Mod returns the remainder a%b for b != 0. If b == 0, a division-by-zero run-time panic occurs. Mod implements Euclidean division (unlike Go); see Int512.DivMod for more details.
func (Int512) Neg ¶
Neg returns the negation of a.
This function's execution time does not depend on the inputs.
func (Int512) Quo ¶
Quo returns the quotient a/b for b != 0. If b == 0, a division-by-zero run-time panic occurs. Quo implements T-division (like Go); see Int512.QuoRem for more details.
func (Int512) QuoRem ¶
QuoRem returns the quotient and remainder of a/b. QuoRem implements T-division and modulus (like Go):
q = a/b with the result truncated to zero r = a - b*q
(See Daan Leijen, “Division and Modulus for Computer Scientists”.) See Int512.DivMod for Euclidean division and modulus (unlike Go).
func (Int512) Rem ¶
Rem returns the remainder a%b for b != 0. If b == 0, a division-by-zero run-time panic occurs. Rem implements T-division (like Go); see Int512.QuoRem for more details.
func (Int512) Rsh ¶
Rsh returns the arithmetic right shift a>>i, preserving the sign bit.
This function's execution time does not depend on the inputs.
func (Int512) Sign ¶
Sign returns the sign of a. It returns 1 if a > 0, -1 if a < 0, and 0 if a == 0.
func (Int512) Sub ¶
Sub returns the difference a-b.
This function's execution time does not depend on the inputs.
func (Int512) Text ¶
Text returns the string representation of a in the given base. Base must be between 2 and 62, inclusive. The result uses the lower-case letters 'a' to 'z' for digit values 10 to 35, and the upper-case letters 'A' to 'Z' for digit values 36 to 61. No prefix (such as "0x") is added to the string.
type Int1024 ¶
type Int1024 [16]uint64
Int1024 is a type that represents an 1024-bit signed integer.
func (Int1024) Add ¶
Add returns the sum a+b.
This function's execution time does not depend on the inputs.
func (Int1024) Append ¶
Append appends the string representation of a, as generated by a.Text(base), to buf and returns the extended buffer.
func (Int1024) AppendText ¶
AppendText implements the encoding.TextAppender interface.
func (Int1024) Cmp ¶
Cmp returns the comparison result of a and b. It returns -1 if a < b, 0 if a == b, and 1 if a > b.
func (Int1024) Div ¶
Div returns the quotient a/b for b != 0. If b == 0, a division-by-zero run-time panic occurs. Div implements Euclidean division (unlike Go); see Int1024.DivMod for more details.
func (Int1024) DivMod ¶
DivMod returns the quotient and remainder of a/b. DivMod implements Euclidean division and modulus (unlike Go):
q = a div b such that m = a - b*q with 0 <= m < |b|
(See Raymond T. Boute, “The Euclidean definition of the functions div and mod”. ACM Transactions on Programming Languages and Systems (TOPLAS), 14(2):127-144, New York, NY, USA, 4/1992. ACM press.) See Int1024.QuoRem for T-division and modulus (like Go).
func (Int1024) Format ¶
Format implements fmt.Formatter.
func (Int1024) Lsh ¶
Lsh returns the logical left shift a<<i.
This function's execution time does not depend on the inputs.
func (Int1024) Mod ¶
Mod returns the remainder a%b for b != 0. If b == 0, a division-by-zero run-time panic occurs. Mod implements Euclidean division (unlike Go); see Int1024.DivMod for more details.
func (Int1024) Neg ¶
Neg returns the negation of a.
This function's execution time does not depend on the inputs.
func (Int1024) Quo ¶
Quo returns the quotient a/b for b != 0. If b == 0, a division-by-zero run-time panic occurs. Quo implements T-division (like Go); see Int1024.QuoRem for more details.
func (Int1024) QuoRem ¶
QuoRem returns the quotient and remainder of a/b. QuoRem implements T-division and modulus (like Go):
q = a/b with the result truncated to zero r = a - b*q
(See Daan Leijen, “Division and Modulus for Computer Scientists”.) See Int1024.DivMod for Euclidean division and modulus (unlike Go).
func (Int1024) Rem ¶
Rem returns the remainder a%b for b != 0. If b == 0, a division-by-zero run-time panic occurs. Rem implements T-division (like Go); see Int1024.QuoRem for more details.
func (Int1024) Rsh ¶
Rsh returns the arithmetic right shift a>>i, preserving the sign bit.
This function's execution time does not depend on the inputs.
func (Int1024) Sign ¶
Sign returns the sign of a. It returns 1 if a > 0, -1 if a < 0, and 0 if a == 0.
func (Int1024) Sub ¶
Sub returns the difference a-b.
This function's execution time does not depend on the inputs.
func (Int1024) Text ¶
Text returns the string representation of a in the given base. Base must be between 2 and 62, inclusive. The result uses the lower-case letters 'a' to 'z' for digit values 10 to 35, and the upper-case letters 'A' to 'Z' for digit values 36 to 61. No prefix (such as "0x") is added to the string.
type Uint8 ¶
type Uint8 uint8
Uint8 is a type that represents an 8-bit unsigned integer. It is an alias for the built-in uint8 type.
func (Uint8) Add ¶
Add returns the sum a+b.
This function's execution time does not depend on the inputs.
func (Uint8) Append ¶
Append appends the string representation of a, as generated by a.Text(base), to buf and returns the extended buffer.
func (Uint8) AppendText ¶
AppendText implements the encoding.TextAppender interface.
func (Uint8) BitLen ¶
BitLen returns the number of bits required to represent a in binary; the result is 0 for a == 0.
func (Uint8) Cmp ¶
Cmp returns the comparison result of a and b. It returns -1 if a < b, 0 if a == b, and 1 if a > b.
func (Uint8) Div ¶
Div returns the quotient a/b for b != 0. If b == 0, a division-by-zero run-time panic occurs. Div implements Euclidean division (unlike Go); see Uint8.DivMod for more details.
func (Uint8) DivMod ¶
DivMod returns the quotient and remainder of a/b. DivMod implements Euclidean division and modulus (unlike Go):
q = a div b such that m = a - b*q with 0 <= m < |b|
(See Raymond T. Boute, “The Euclidean definition of the functions div and mod”. ACM Transactions on Programming Languages and Systems (TOPLAS), 14(2):127-144, New York, NY, USA, 4/1992. ACM press.) See Uint8.QuoRem for T-division and modulus (like Go).
func (Uint8) Format ¶
Format implements fmt.Formatter.
func (Uint8) LeadingZeros ¶
LeadingZeros returns the number of leading zero bits in a; the result is 8 for a == 0.
func (Uint8) Lsh ¶
Lsh returns the logical left shift a<<i.
This function's execution time does not depend on the inputs.
func (Uint8) Mod ¶
Mod returns the remainder a%b for b != 0. If b == 0, a division-by-zero run-time panic occurs. Mod implements Euclidean division (unlike Go); see Uint8.DivMod for more details.
func (Uint8) Neg ¶
Neg returns the negation of a.
This function's execution time does not depend on the inputs.
func (Uint8) Quo ¶
Quo returns the quotient a/b for b != 0. If b == 0, a division-by-zero run-time panic occurs. Quo implements T-division (like Go); see Uint8.QuoRem for more details. For unsigned integers T‑division and Euclidean division are identical, therefore Quo simply forwards to Div.
func (Uint8) QuoRem ¶
QuoRem returns the quotient and remainder of a/b. QuoRem implements T-division and modulus (like Go):
q = a/b with the result truncated to zero r = a - b*q
(See Daan Leijen, “Division and Modulus for Computer Scientists”.) See Uint8.DivMod for Euclidean division and modulus (unlike Go). For unsigned integers T‑division and Euclidean division are identical, therefore QuoRem simply forwards to DivMod.
func (Uint8) Rem ¶
Rem returns the remainder a%b for b != 0. If b == 0, a division-by-zero run-time panic occurs. Rem implements T-division (like Go); see Uint8.QuoRem for more details. For unsigned integers T‑division and Euclidean division are identical, therefore Rem simply forwards to Mod.
func (Uint8) Rsh ¶
Rsh returns the logical right shift a>>i.
This function's execution time does not depend on the inputs.
func (Uint8) Sign ¶
Sign returns the sign of a. It returns 1 if a > 0, and 0 if a == 0. It does not return -1 because Uint8 is unsigned.
func (Uint8) Sub ¶
Sub returns the difference a-b.
This function's execution time does not depend on the inputs.
func (Uint8) Text ¶
Text returns the string representation of a in the given base. Base must be between 2 and 62, inclusive. The result uses the lower-case letters 'a' to 'z' for digit values 10 to 35, and the upper-case letters 'A' to 'Z' for digit values 36 to 61. No prefix (such as "0x") is added to the string.
func (Uint8) TrailingZeros ¶
TrailingZeros returns the number of trailing zero bits in a; the result is 8 for a == 0.
type Uint16 ¶
type Uint16 uint16
Uint16 is a type that represents an 16-bit unsigned integer. It is an alias for the built-in uint16 type.
func (Uint16) Add ¶
Add returns the sum a+b.
This function's execution time does not depend on the inputs.
func (Uint16) Append ¶
Append appends the string representation of a, as generated by a.Text(base), to buf and returns the extended buffer.
func (Uint16) AppendText ¶
AppendText implements the encoding.TextAppender interface.
func (Uint16) BitLen ¶
BitLen returns the number of bits required to represent a in binary; the result is 0 for a == 0.
func (Uint16) Cmp ¶
Cmp returns the comparison result of a and b. It returns -1 if a < b, 0 if a == b, and 1 if a > b.
func (Uint16) Div ¶
Div returns the quotient a/b for b != 0. If b == 0, a division-by-zero run-time panic occurs. Div implements Euclidean division (unlike Go); see Uint16.DivMod for more details.
func (Uint16) DivMod ¶
DivMod returns the quotient and remainder of a/b. DivMod implements Euclidean division and modulus (unlike Go):
q = a div b such that m = a - b*q with 0 <= m < |b|
(See Raymond T. Boute, “The Euclidean definition of the functions div and mod”. ACM Transactions on Programming Languages and Systems (TOPLAS), 14(2):127-144, New York, NY, USA, 4/1992. ACM press.) See Uint16.QuoRem for T-division and modulus (like Go).
func (Uint16) Format ¶
Format implements fmt.Formatter.
func (Uint16) LeadingZeros ¶
LeadingZeros returns the number of leading zero bits in a; the result is 16 for a == 0.
func (Uint16) Lsh ¶
Lsh returns the logical left shift a<<i.
This function's execution time does not depend on the inputs.
func (Uint16) Mod ¶
Mod returns the remainder a%b for b != 0. If b == 0, a division-by-zero run-time panic occurs. Mod implements Euclidean division (unlike Go); see Uint16.DivMod for more details.
func (Uint16) Neg ¶
Neg returns the negation of a.
This function's execution time does not depend on the inputs.
func (Uint16) Quo ¶
Quo returns the quotient a/b for b != 0. If b == 0, a division-by-zero run-time panic occurs. Quo implements T-division (like Go); see Uint16.QuoRem for more details. For unsigned integers T‑division and Euclidean division are identical, therefore Quo simply forwards to Div.
func (Uint16) QuoRem ¶
QuoRem returns the quotient and remainder of a/b. QuoRem implements T-division and modulus (like Go):
q = a/b with the result truncated to zero r = a - b*q
(See Daan Leijen, “Division and Modulus for Computer Scientists”.) See Uint16.DivMod for Euclidean division and modulus (unlike Go). For unsigned integers T‑division and Euclidean division are identical, therefore QuoRem simply forwards to DivMod.
func (Uint16) Rem ¶
Rem returns the remainder a%b for b != 0. If b == 0, a division-by-zero run-time panic occurs. Rem implements T-division (like Go); see Uint16.QuoRem for more details. For unsigned integers T‑division and Euclidean division are identical, therefore Rem simply forwards to Mod.
func (Uint16) Rsh ¶
Rsh returns the logical right shift a>>i.
This function's execution time does not depend on the inputs.
func (Uint16) Sign ¶
Sign returns the sign of a. It returns 1 if a > 0, and 0 if a == 0. It does not return -1 because Uint16 is unsigned.
func (Uint16) Sub ¶
Sub returns the difference a-b.
This function's execution time does not depend on the inputs.
func (Uint16) Text ¶
Text returns the string representation of a in the given base. Base must be between 2 and 62, inclusive. The result uses the lower-case letters 'a' to 'z' for digit values 10 to 35, and the upper-case letters 'A' to 'Z' for digit values 36 to 61. No prefix (such as "0x") is added to the string.
func (Uint16) TrailingZeros ¶
TrailingZeros returns the number of trailing zero bits in a; the result is 16 for a == 0.
type Uint32 ¶
type Uint32 uint32
Uint32 is a type that represents an 32-bit unsigned integer. It is an alias for the built-in uint32 type.
func (Uint32) Add ¶
Add returns the sum a+b.
This function's execution time does not depend on the inputs.
func (Uint32) Append ¶
Append appends the string representation of a, as generated by a.Text(base), to buf and returns the extended buffer.
func (Uint32) AppendText ¶
AppendText implements the encoding.TextAppender interface.
func (Uint32) BitLen ¶
BitLen returns the number of bits required to represent a in binary; the result is 0 for a == 0.
func (Uint32) Cmp ¶
Cmp returns the comparison result of a and b. It returns -1 if a < b, 0 if a == b, and 1 if a > b.
func (Uint32) Div ¶
Div returns the quotient a/b for b != 0. If b == 0, a division-by-zero run-time panic occurs. Div implements Euclidean division (unlike Go); see Uint32.DivMod for more details.
func (Uint32) DivMod ¶
DivMod returns the quotient and remainder of a/b. DivMod implements Euclidean division and modulus (unlike Go):
q = a div b such that m = a - b*q with 0 <= m < |b|
(See Raymond T. Boute, “The Euclidean definition of the functions div and mod”. ACM Transactions on Programming Languages and Systems (TOPLAS), 14(2):127-144, New York, NY, USA, 4/1992. ACM press.) See Uint32.QuoRem for T-division and modulus (like Go).
func (Uint32) Format ¶
Format implements fmt.Formatter.
func (Uint32) LeadingZeros ¶
LeadingZeros returns the number of leading zero bits in a; the result is 32 for a == 0.
func (Uint32) Lsh ¶
Lsh returns the logical left shift a<<i.
This function's execution time does not depend on the inputs.
func (Uint32) Mod ¶
Mod returns the remainder a%b for b != 0. If b == 0, a division-by-zero run-time panic occurs. Mod implements Euclidean division (unlike Go); see Uint32.DivMod for more details.
func (Uint32) Neg ¶
Neg returns the negation of a.
This function's execution time does not depend on the inputs.
func (Uint32) Quo ¶
Quo returns the quotient a/b for b != 0. If b == 0, a division-by-zero run-time panic occurs. Quo implements T-division (like Go); see Uint32.QuoRem for more details. For unsigned integers T‑division and Euclidean division are identical, therefore Quo simply forwards to Div.
func (Uint32) QuoRem ¶
QuoRem returns the quotient and remainder of a/b. QuoRem implements T-division and modulus (like Go):
q = a/b with the result truncated to zero r = a - b*q
(See Daan Leijen, “Division and Modulus for Computer Scientists”.) See Uint32.DivMod for Euclidean division and modulus (unlike Go). For unsigned integers T‑division and Euclidean division are identical, therefore QuoRem simply forwards to DivMod.
func (Uint32) Rem ¶
Rem returns the remainder a%b for b != 0. If b == 0, a division-by-zero run-time panic occurs. Rem implements T-division (like Go); see Uint32.QuoRem for more details. For unsigned integers T‑division and Euclidean division are identical, therefore Rem simply forwards to Mod.
func (Uint32) Rsh ¶
Rsh returns the logical right shift a>>i.
This function's execution time does not depend on the inputs.
func (Uint32) Sign ¶
Sign returns the sign of a. It returns 1 if a > 0, and 0 if a == 0. It does not return -1 because Uint32 is unsigned.
func (Uint32) Sub ¶
Sub returns the difference a-b.
This function's execution time does not depend on the inputs.
func (Uint32) Text ¶
Text returns the string representation of a in the given base. Base must be between 2 and 62, inclusive. The result uses the lower-case letters 'a' to 'z' for digit values 10 to 35, and the upper-case letters 'A' to 'Z' for digit values 36 to 61. No prefix (such as "0x") is added to the string.
func (Uint32) TrailingZeros ¶
TrailingZeros returns the number of trailing zero bits in a; the result is 32 for a == 0.
type Uint64 ¶
type Uint64 uint64
Uint64 is a type that represents an 64-bit unsigned integer. It is an alias for the built-in uint64 type.
func (Uint64) Add ¶
Add returns the sum a+b.
This function's execution time does not depend on the inputs.
func (Uint64) Append ¶
Append appends the string representation of a, as generated by a.Text(base), to buf and returns the extended buffer.
func (Uint64) AppendText ¶
AppendText implements the encoding.TextAppender interface.
func (Uint64) BitLen ¶
BitLen returns the number of bits required to represent a in binary; the result is 0 for a == 0.
func (Uint64) Cmp ¶
Cmp returns the comparison result of a and b. It returns -1 if a < b, 0 if a == b, and 1 if a > b.
func (Uint64) Div ¶
Div returns the quotient a/b for b != 0. If b == 0, a division-by-zero run-time panic occurs. Div implements Euclidean division (unlike Go); see Uint64.DivMod for more details.
func (Uint64) DivMod ¶
DivMod returns the quotient and remainder of a/b. DivMod implements Euclidean division and modulus (unlike Go):
q = a div b such that m = a - b*q with 0 <= m < |b|
(See Raymond T. Boute, “The Euclidean definition of the functions div and mod”. ACM Transactions on Programming Languages and Systems (TOPLAS), 14(2):127-144, New York, NY, USA, 4/1992. ACM press.) See Uint64.QuoRem for T-division and modulus (like Go).
func (Uint64) Format ¶
Format implements fmt.Formatter.
func (Uint64) LeadingZeros ¶
LeadingZeros returns the number of leading zero bits in a; the result is 64 for a == 0.
func (Uint64) Lsh ¶
Lsh returns the logical left shift a<<i.
This function's execution time does not depend on the inputs.
func (Uint64) Mod ¶
Mod returns the remainder a%b for b != 0. If b == 0, a division-by-zero run-time panic occurs. Mod implements Euclidean division (unlike Go); see Uint64.DivMod for more details.
func (Uint64) Neg ¶
Neg returns the negation of a.
This function's execution time does not depend on the inputs.
func (Uint64) Quo ¶
Quo returns the quotient a/b for b != 0. If b == 0, a division-by-zero run-time panic occurs. Quo implements T-division (like Go); see Uint64.QuoRem for more details. For unsigned integers T‑division and Euclidean division are identical, therefore Quo simply forwards to Div.
func (Uint64) QuoRem ¶
QuoRem returns the quotient and remainder of a/b. QuoRem implements T-division and modulus (like Go):
q = a/b with the result truncated to zero r = a - b*q
(See Daan Leijen, “Division and Modulus for Computer Scientists”.) See Uint64.DivMod for Euclidean division and modulus (unlike Go). For unsigned integers T‑division and Euclidean division are identical, therefore QuoRem simply forwards to DivMod.
func (Uint64) Rem ¶
Rem returns the remainder a%b for b != 0. If b == 0, a division-by-zero run-time panic occurs. Rem implements T-division (like Go); see Uint64.QuoRem for more details. For unsigned integers T‑division and Euclidean division are identical, therefore Rem simply forwards to Mod.
func (Uint64) Rsh ¶
Rsh returns the logical right shift a>>i.
This function's execution time does not depend on the inputs.
func (Uint64) Sign ¶
Sign returns the sign of a. It returns 1 if a > 0, and 0 if a == 0. It does not return -1 because Uint64 is unsigned.
func (Uint64) Sub ¶
Sub returns the difference a-b.
This function's execution time does not depend on the inputs.
func (Uint64) Text ¶
Text returns the string representation of a in the given base. Base must be between 2 and 62, inclusive. The result uses the lower-case letters 'a' to 'z' for digit values 10 to 35, and the upper-case letters 'A' to 'Z' for digit values 36 to 61. No prefix (such as "0x") is added to the string.
func (Uint64) TrailingZeros ¶
TrailingZeros returns the number of trailing zero bits in a; the result is 64 for a == 0.
type Uint128 ¶
type Uint128 [2]uint64
Uint128 is a type that represents an 128-bit unsigned integer.
func (Uint128) Add ¶
Add returns the sum a+b.
This function's execution time does not depend on the inputs.
func (Uint128) Append ¶
Append appends the string representation of a, as generated by a.Text(base), to buf and returns the extended buffer.
func (Uint128) AppendText ¶
AppendText implements the encoding.TextAppender interface.
func (Uint128) BitLen ¶
BitLen returns the number of bits required to represent x in binary; the result is 0 for x == 0.
func (Uint128) Cmp ¶
Cmp returns the comparison result of a and b. It returns -1 if a < b, 0 if a == b, and 1 if a > b.
func (Uint128) Div ¶
Div returns the quotient a/b for b != 0. If b == 0, a division-by-zero run-time panic occurs. Div implements Euclidean division (unlike Go); see Uint128.DivMod for more details.
func (Uint128) DivMod ¶
DivMod returns the quotient and remainder of a/b. DivMod implements Euclidean division and modulus (unlike Go):
q = a div b such that m = a - b*q with 0 <= m < |b|
(See Raymond T. Boute, “The Euclidean definition of the functions div and mod”. ACM Transactions on Programming Languages and Systems (TOPLAS), 14(2):127-144, New York, NY, USA, 4/1992. ACM press.) See Uint128.QuoRem for T-division and modulus (like Go).
func (Uint128) Format ¶
Format implements fmt.Formatter.
func (Uint128) LeadingZeros ¶
LeadingZeros returns the number of leading zero bits in x; the result is 128 for x == 0.
func (Uint128) Lsh ¶
Lsh returns the logical left shift a<<i.
This function's execution time does not depend on the inputs.
func (Uint128) Mod ¶
Mod returns the remainder a%b for b != 0. If b == 0, a division-by-zero run-time panic occurs. Mod implements Euclidean division (unlike Go); see Uint128.DivMod for more details.
func (Uint128) Mul ¶
Mul returns the product a*b.
This function's execution time does not depend on the inputs.
func (Uint128) Neg ¶
Neg returns the negation of a.
This function's execution time does not depend on the inputs.
func (Uint128) Quo ¶
Quo returns the quotient a/b for b != 0. If b == 0, a division-by-zero run-time panic occurs. Quo implements T-division (like Go); see Uint128.QuoRem for more details. For unsigned integers T‑division and Euclidean division are identical, therefore Quo simply forwards to Div.
func (Uint128) QuoRem ¶
QuoRem returns the quotient and remainder of a/b. QuoRem implements T-division and modulus (like Go):
q = a/b with the result truncated to zero r = a - b*q
(See Daan Leijen, “Division and Modulus for Computer Scientists”.) See Uint128.DivMod for Euclidean division and modulus (unlike Go). For unsigned integers T‑division and Euclidean division are identical, therefore QuoRem simply forwards to DivMod.
func (Uint128) Rem ¶
Rem returns the remainder a%b for b != 0. If b == 0, a division-by-zero run-time panic occurs. Rem implements T-division (like Go); see Uint128.QuoRem for more details. For unsigned integers T‑division and Euclidean division are identical, therefore Rem simply forwards to Mod.
func (Uint128) Rsh ¶
Rsh returns the logical right shift a>>i.
This function's execution time does not depend on the inputs.
func (Uint128) Sign ¶
Sign returns the sign of a. It returns 1 if a > 0, and 0 if a == 0. It does not return -1 because Uint128 is unsigned.
func (Uint128) Sub ¶
Sub returns the difference a-b.
This function's execution time does not depend on the inputs.
func (Uint128) Text ¶
Text returns the string representation of a in the given base. Base must be between 2 and 62, inclusive. The result uses the lower-case letters 'a' to 'z' for digit values 10 to 35, and the upper-case letters 'A' to 'Z' for digit values 36 to 61. No prefix (such as "0x") is added to the string.
func (Uint128) TrailingZeros ¶
TrailingZeros returns the number of trailing zero bits in x; the result is 128 for x == 0.
type Uint256 ¶
type Uint256 [4]uint64
Uint256 is a type that represents an 256-bit unsigned integer.
func (Uint256) Add ¶
Add returns the sum a+b.
This function's execution time does not depend on the inputs.
func (Uint256) Append ¶
Append appends the string representation of a, as generated by a.Text(base), to buf and returns the extended buffer.
func (Uint256) AppendText ¶
AppendText implements the encoding.TextAppender interface.
func (Uint256) BitLen ¶
BitLen returns the number of bits required to represent a in binary; the result is 0 for a == 0.
func (Uint256) Cmp ¶
Cmp returns the comparison result of a and b. It returns -1 if a < b, 0 if a == b, and 1 if a > b.
func (Uint256) Div ¶
Div returns the quotient a/b for b != 0. If b == 0, a division-by-zero run-time panic occurs. Div implements Euclidean division (unlike Go); see Uint256.DivMod for more details.
func (Uint256) DivMod ¶
DivMod returns the quotient and remainder of a/b. DivMod implements Euclidean division and modulus (unlike Go):
q = a div b such that m = a - b*q with 0 <= m < |b|
(See Raymond T. Boute, “The Euclidean definition of the functions div and mod”. ACM Transactions on Programming Languages and Systems (TOPLAS), 14(2):127-144, New York, NY, USA, 4/1992. ACM press.) See Uint256.QuoRem for T-division and modulus (like Go).
func (Uint256) Format ¶
Format implements fmt.Formatter.
func (Uint256) LeadingZeros ¶
LeadingZeros returns the number of leading zero bits in a; the result is 256 for a == 0.
func (Uint256) Lsh ¶
Lsh returns the logical left shift a<<i.
This function's execution time does not depend on the inputs.
func (Uint256) Mod ¶
Mod returns the remainder a%b for b != 0. If b == 0, a division-by-zero run-time panic occurs. Mod implements Euclidean division (unlike Go); see Uint256.DivMod for more details.
func (Uint256) Neg ¶
Neg returns the negation of a.
This function's execution time does not depend on the inputs.
func (Uint256) Quo ¶
Quo returns the quotient a/b for b != 0. If b == 0, a division-by-zero run-time panic occurs. Quo implements T-division (like Go); see Uint256.QuoRem for more details. For unsigned integers T‑division and Euclidean division are identical, therefore Quo simply forwards to Div.
func (Uint256) QuoRem ¶
QuoRem returns the quotient and remainder of a/b. QuoRem implements T-division and modulus (like Go):
q = a/b with the result truncated to zero r = a - b*q
(See Daan Leijen, “Division and Modulus for Computer Scientists”.) See Uint256.DivMod for Euclidean division and modulus (unlike Go). For unsigned integers T‑division and Euclidean division are identical, therefore QuoRem simply forwards to DivMod.
func (Uint256) Rem ¶
Rem returns the remainder a%b for b != 0. If b == 0, a division-by-zero run-time panic occurs. Rem implements T-division (like Go); see Uint256.QuoRem for more details. For unsigned integers T‑division and Euclidean division are identical, therefore Rem simply forwards to Mod.
func (Uint256) Rsh ¶
Rsh returns the logical right shift a>>i.
This function's execution time does not depend on the inputs.
func (Uint256) Sign ¶
Sign returns the sign of a. It returns 1 if a > 0, and 0 if a == 0. It does not return -1 because Uint256 is unsigned.
func (Uint256) Sub ¶
Sub returns the difference a-b.
This function's execution time does not depend on the inputs.
func (Uint256) Text ¶
Text returns the string representation of a in the given base. Base must be between 2 and 62, inclusive. The result uses the lower-case letters 'a' to 'z' for digit values 10 to 35, and the upper-case letters 'A' to 'Z' for digit values 36 to 61. No prefix (such as "0x") is added to the string.
func (Uint256) TrailingZeros ¶
TrailingZeros returns the number of trailing zero bits in a; the result is 256 for a == 0.
type Uint512 ¶
type Uint512 [8]uint64
Uint512 is a type that represents an 512-bit unsigned integer.
func (Uint512) Add ¶
Add returns the sum a+b.
This function's execution time does not depend on the inputs.
func (Uint512) Append ¶
Append appends the string representation of a, as generated by a.Text(base), to buf and returns the extended buffer.
func (Uint512) AppendText ¶
AppendText implements the encoding.TextAppender interface.
func (Uint512) BitLen ¶
BitLen returns the number of bits required to represent a in binary; the result is 0 for a == 0.
func (Uint512) Cmp ¶
Cmp returns the comparison result of a and b. It returns -1 if a < b, 0 if a == b, and 1 if a > b.
func (Uint512) Div ¶
Div returns the quotient a/b for b != 0. If b == 0, a division-by-zero run-time panic occurs. Div implements Euclidean division (unlike Go); see Uint512.DivMod for more details.
func (Uint512) DivMod ¶
DivMod returns the quotient and remainder of a/b. DivMod implements Euclidean division and modulus (unlike Go):
q = a div b such that m = a - b*q with 0 <= m < |b|
(See Raymond T. Boute, “The Euclidean definition of the functions div and mod”. ACM Transactions on Programming Languages and Systems (TOPLAS), 14(2):127-144, New York, NY, USA, 4/1992. ACM press.) See Uint512.QuoRem for T-division and modulus (like Go).
func (Uint512) Format ¶
Format implements fmt.Formatter.
func (Uint512) LeadingZeros ¶
LeadingZeros returns the number of leading zero bits in a; the result is 512 for a == 0.
func (Uint512) Lsh ¶
Lsh returns the logical left shift a<<i.
This function's execution time does not depend on the inputs.
func (Uint512) Mod ¶
Mod returns the remainder a%b for b != 0. If b == 0, a division-by-zero run-time panic occurs. Mod implements Euclidean division (unlike Go); see Uint512.DivMod for more details.
func (Uint512) Mul ¶
Mul returns the product a*b.
This function's execution time does not depend on the inputs.
func (Uint512) Mul1024 ¶
Mul1024 returns the product a*b, the result is a 1024-bit integer.
This function's execution time does not depend on the inputs.
func (Uint512) Neg ¶
Neg returns the negation of a.
This function's execution time does not depend on the inputs.
func (Uint512) Quo ¶
Quo returns the quotient a/b for b != 0. If b == 0, a division-by-zero run-time panic occurs. Quo implements T-division (like Go); see Uint512.QuoRem for more details. For unsigned integers T‑division and Euclidean division are identical, therefore Quo simply forwards to Div.
func (Uint512) QuoRem ¶
QuoRem returns the quotient and remainder of a/b. QuoRem implements T-division and modulus (like Go):
q = a/b with the result truncated to zero r = a - b*q
(See Daan Leijen, “Division and Modulus for Computer Scientists”.) See Uint512.DivMod for Euclidean division and modulus (unlike Go). For unsigned integers T‑division and Euclidean division are identical, therefore QuoRem simply forwards to DivMod.
func (Uint512) Rem ¶
Rem returns the remainder a%b for b != 0. If b == 0, a division-by-zero run-time panic occurs. Rem implements T-division (like Go); see Uint512.QuoRem for more details. For unsigned integers T‑division and Euclidean division are identical, therefore Rem simply forwards to Mod.
func (Uint512) Rsh ¶
Rsh returns the logical right shift a>>i.
This function's execution time does not depend on the inputs.
func (Uint512) Sign ¶
Sign returns the sign of a. It returns 1 if a > 0, and 0 if a == 0. It does not return -1 because Uint512 is unsigned.
func (Uint512) Sub ¶
Sub returns the difference a-b.
This function's execution time does not depend on the inputs.
func (Uint512) Text ¶
Text returns the string representation of a in the given base. Base must be between 2 and 62, inclusive. The result uses the lower-case letters 'a' to 'z' for digit values 10 to 35, and the upper-case letters 'A' to 'Z' for digit values 36 to 61. No prefix (such as "0x") is added to the string.
func (Uint512) TrailingZeros ¶
TrailingZeros returns the number of trailing zero bits in a; the result is 512 for a == 0.
type Uint1024 ¶
type Uint1024 [16]uint64
Uint1024 is a type that represents an 1024-bit unsigned integer.
func (Uint1024) Add ¶
Add returns the sum a+b.
This function's execution time does not depend on the inputs.
func (Uint1024) Append ¶
Append appends the string representation of a, as generated by a.Text(base), to buf and returns the extended buffer.
func (Uint1024) AppendText ¶
AppendText implements the encoding.TextAppender interface.
func (Uint1024) BitLen ¶
BitLen returns the number of bits required to represent a in binary; the result is 0 for a == 0.
func (Uint1024) Cmp ¶
Cmp returns the comparison result of a and b. It returns -1 if a < b, 0 if a == b, and 1 if a > b.
func (Uint1024) Div ¶
Div returns the quotient a/b for b != 0. If b == 0, a division-by-zero run-time panic occurs. Div implements Euclidean division (unlike Go); see Uint1024.DivMod for more details.
func (Uint1024) DivMod ¶
DivMod returns the quotient and remainder of a/b. DivMod implements Euclidean division and modulus (unlike Go):
q = a div b such that m = a - b*q with 0 <= m < |b|
(See Raymond T. Boute, “The Euclidean definition of the functions div and mod”. ACM Transactions on Programming Languages and Systems (TOPLAS), 14(2):127-144, New York, NY, USA, 4/1992. ACM press.) See Uint1024.QuoRem for T-division and modulus (like Go).
func (Uint1024) Format ¶
Format implements fmt.Formatter.
func (Uint1024) LeadingZeros ¶
LeadingZeros returns the number of leading zero bits in a; the result is 1024 for a == 0.
func (Uint1024) Lsh ¶
Lsh returns the logical left shift a<<i.
This function's execution time does not depend on the inputs.
func (Uint1024) Mod ¶
Mod returns the remainder a%b for b != 0. If b == 0, a division-by-zero run-time panic occurs. Mod implements Euclidean division (unlike Go); see Uint1024.DivMod for more details.
func (Uint1024) Mul ¶
Mul returns the product a*b.
This function's execution time does not depend on the inputs.
func (Uint1024) Neg ¶
Neg returns the negation of a.
This function's execution time does not depend on the inputs.
func (Uint1024) Quo ¶
Quo returns the quotient a/b for b != 0. If b == 0, a division-by-zero run-time panic occurs. Quo implements T-division (like Go); see Uint1024.QuoRem for more details. For unsigned integers T‑division and Euclidean division are identical, therefore Quo simply forwards to Div.
func (Uint1024) QuoRem ¶
QuoRem returns the quotient and remainder of a/b. QuoRem implements T-division and modulus (like Go):
q = a/b with the result truncated to zero r = a - b*q
(See Daan Leijen, “Division and Modulus for Computer Scientists”.) See Uint1024.DivMod for Euclidean division and modulus (unlike Go). For unsigned integers T‑division and Euclidean division are identical, therefore QuoRem simply forwards to DivMod.
func (Uint1024) Rem ¶
Rem returns the remainder a%b for b != 0. If b == 0, a division-by-zero run-time panic occurs. Rem implements T-division (like Go); see Uint1024.QuoRem for more details. For unsigned integers T‑division and Euclidean division are identical, therefore Rem simply forwards to Mod.
func (Uint1024) Rsh ¶
Rsh returns the logical right shift a>>i.
This function's execution time does not depend on the inputs.
func (Uint1024) Sign ¶
Sign returns the sign of a. It returns 1 if a > 0, and 0 if a == 0. It does not return -1 because Uint128 is unsigned.
func (Uint1024) Sub ¶
Sub returns the difference a-b.
This function's execution time does not depend on the inputs.
func (Uint1024) Text ¶
Text returns the string representation of a in the given base. Base must be between 2 and 62, inclusive. The result uses the lower-case letters 'a' to 'z' for digit values 10 to 35, and the upper-case letters 'A' to 'Z' for digit values 36 to 61. No prefix (such as "0x") is added to the string.
func (Uint1024) TrailingZeros ¶
TrailingZeros returns the number of trailing zero bits in a; the result is 1024 for a == 0.