Int

Overview

Location

  • Reference: Go.fx
  • Namespace: go.math.big
  • Platforms: Island


Instance Methods


constructor

 

constructor

 

Int()

 

init()

 

Sub New()

constructor (Int)

 

constructor(value: Int)

 

Int(Int value)

 

init(_ value: Int)

 

Sub New(value As Int)

Parameters:

  • value:

Format (State, rune)

 

method Format(s: State; ch: rune)

 

void Format(State s, rune ch)

 

func Format(_ s: State, _ ch: rune)

 

func Format(s State, ch rune) void

 

Sub Format(s As State, ch As rune)

Parameters:

  • s:
  • ch:

Scan (ScanState, rune): error

 

method Scan(s: ScanState; ch: rune): error

 

error Scan(ScanState s, rune ch)

 

func Scan(_ s: ScanState, _ ch: rune) -> error

 

func Scan(s ScanState, ch rune) error

 

Function Scan(s As ScanState, ch As rune) As error

Parameters:

  • s:
  • ch:

Abs

 

method Abs(x: Memory<Int>): Memory<Int>

 

Memory<Int> Abs(Memory<Int> x)

 

func Abs(_ x: Memory<Int>) -> Memory<Int>

 

func Abs(x Memory<Int>) Memory<Int>

 

Function Abs(x As Memory<Int>) As Memory<Int>

Parameters:

  • x:

Add

 

method Add(x: Memory<Int>; y: Memory<Int>): Memory<Int>

 

Memory<Int> Add(Memory<Int> x, Memory<Int> y)

 

func Add(_ x: Memory<Int>, _ y: Memory<Int>) -> Memory<Int>

 

func Add(x Memory<Int>, y Memory<Int>) Memory<Int>

 

Function Add(x As Memory<Int>, y As Memory<Int>) As Memory<Int>

Parameters:

  • x:
  • y:

And

 

method And(x: Memory<Int>; y: Memory<Int>): Memory<Int>

 

Memory<Int> And(Memory<Int> x, Memory<Int> y)

 

func And(_ x: Memory<Int>, _ y: Memory<Int>) -> Memory<Int>

 

func And(x Memory<Int>, y Memory<Int>) Memory<Int>

 

Function And(x As Memory<Int>, y As Memory<Int>) As Memory<Int>

Parameters:

  • x:
  • y:

AndNot

 

method AndNot(x: Memory<Int>; y: Memory<Int>): Memory<Int>

 

Memory<Int> AndNot(Memory<Int> x, Memory<Int> y)

 

func AndNot(_ x: Memory<Int>, _ y: Memory<Int>) -> Memory<Int>

 

func AndNot(x Memory<Int>, y Memory<Int>) Memory<Int>

 

Function AndNot(x As Memory<Int>, y As Memory<Int>) As Memory<Int>

Parameters:

  • x:
  • y:

Append

 

method Append(buf: Slice<Byte>; base: int): Slice<Byte>

 

Slice<Byte> Append(Slice<Byte> buf, int base)

 

func Append(_ buf: Slice<Byte>, _ base: int) -> Slice<Byte>

 

func Append(buf Slice<Byte>, base int) Slice<Byte>

 

Function Append(buf As Slice<Byte>, base As int) As Slice<Byte>

Parameters:

  • buf:
  • base:

Binomial

 

method Binomial(n: int64; k: int64): Memory<Int>

 

Memory<Int> Binomial(int64 n, int64 k)

 

func Binomial(_ n: int64, _ k: int64) -> Memory<Int>

 

func Binomial(n int64, k int64) Memory<Int>

 

Function Binomial(n As int64, k As int64) As Memory<Int>

Parameters:

  • n:
  • k:

Bit

 

method Bit(i: int): uint

 

uint Bit(int i)

 

func Bit(_ i: int) -> uint

 

func Bit(i int) uint

 

Function Bit(i As int) As uint

Parameters:

  • i:

BitLen

 

method BitLen: int

 

int BitLen()

 

func BitLen() -> int

 

func BitLen() int

 

Function BitLen() As int

Bits

 

method Bits: Slice<Word>

 

Slice<Word> Bits()

 

func Bits() -> Slice<Word>

 

func Bits() Slice<Word>

 

Function Bits() As Slice<Word>

Bytes

 

method Bytes: Slice<Byte>

 

Slice<Byte> Bytes()

 

func Bytes() -> Slice<Byte>

 

func Bytes() Slice<Byte>

 

Function Bytes() As Slice<Byte>

Cmp

 

method Cmp(y: Memory<Int>): int

 

int Cmp(Memory<Int> y)

 

func Cmp(_ y: Memory<Int>) -> int

 

func Cmp(y Memory<Int>) int

 

Function Cmp(y As Memory<Int>) As int

Parameters:

  • y:

CmpAbs

 

method CmpAbs(y: Memory<Int>): int

 

int CmpAbs(Memory<Int> y)

 

func CmpAbs(_ y: Memory<Int>) -> int

 

func CmpAbs(y Memory<Int>) int

 

Function CmpAbs(y As Memory<Int>) As int

Parameters:

  • y:

Div

 

method Div(x: Memory<Int>; y: Memory<Int>): Memory<Int>

 

Memory<Int> Div(Memory<Int> x, Memory<Int> y)

 

func Div(_ x: Memory<Int>, _ y: Memory<Int>) -> Memory<Int>

 

func Div(x Memory<Int>, y Memory<Int>) Memory<Int>

 

Function Div(x As Memory<Int>, y As Memory<Int>) As Memory<Int>

Parameters:

  • x:
  • y:

DivMod

 

method DivMod(x: Memory<Int>; y: Memory<Int>; m: Memory<Int>): tuple of (Memory<Int>, Memory<Int>)

 

(Memory<Int>, Memory<Int>) DivMod(Memory<Int> x, Memory<Int> y, Memory<Int> m)

 

func DivMod(_ x: Memory<Int>, _ y: Memory<Int>, _ m: Memory<Int>) -> (Memory<Int>, Memory<Int>)

 

func DivMod(x Memory<Int>, y Memory<Int>, m Memory<Int>) tuple of (Memory<Int>, Memory<Int>)

 

Function DivMod(x As Memory<Int>, y As Memory<Int>, m As Memory<Int>) As Tuple (Of Memory<Int>, Memory<Int>)

Parameters:

  • x:
  • y:
  • m:

Exp

 

method Exp(x: Memory<Int>; y: Memory<Int>; m: Memory<Int>): Memory<Int>

 

Memory<Int> Exp(Memory<Int> x, Memory<Int> y, Memory<Int> m)

 

func Exp(_ x: Memory<Int>, _ y: Memory<Int>, _ m: Memory<Int>) -> Memory<Int>

 

func Exp(x Memory<Int>, y Memory<Int>, m Memory<Int>) Memory<Int>

 

Function Exp(x As Memory<Int>, y As Memory<Int>, m As Memory<Int>) As Memory<Int>

Parameters:

  • x:
  • y:
  • m:

Format (State, rune)

 

method Format(s: State; ch: rune)

 

void Format(State s, rune ch)

 

func Format(_ s: State, _ ch: rune)

 

func Format(s State, ch rune) void

 

Sub Format(s As State, ch As rune)

Parameters:

  • s:
  • ch:

GCD

 

method GCD(x: Memory<Int>; y: Memory<Int>; a: Memory<Int>; b: Memory<Int>): Memory<Int>

 

Memory<Int> GCD(Memory<Int> x, Memory<Int> y, Memory<Int> a, Memory<Int> b)

 

func GCD(_ x: Memory<Int>, _ y: Memory<Int>, _ a: Memory<Int>, _ b: Memory<Int>) -> Memory<Int>

 

func GCD(x Memory<Int>, y Memory<Int>, a Memory<Int>, b Memory<Int>) Memory<Int>

 

Function GCD(x As Memory<Int>, y As Memory<Int>, a As Memory<Int>, b As Memory<Int>) As Memory<Int>

Parameters:

  • x:
  • y:
  • a:
  • b:

GobDecode

 

method GobDecode(buf: Slice<Byte>): error

 

error GobDecode(Slice<Byte> buf)

 

func GobDecode(_ buf: Slice<Byte>) -> error

 

func GobDecode(buf Slice<Byte>) error

 

Function GobDecode(buf As Slice<Byte>) As error

Parameters:

  • buf:

GobEncode

 

method GobEncode: tuple of (Slice<Byte>, error)

 

(Slice<Byte>, error) GobEncode()

 

func GobEncode() -> (Slice<Byte>, error)

 

func GobEncode() tuple of (Slice<Byte>, error)

 

Function GobEncode() As Tuple (Of Slice<Byte>, error)

Int64

 

method Int64: int64

 

int64 Int64()

 

func Int64() -> int64

 

func Int64() int64

 

Function Int64() As int64

IsInt64

 

method IsInt64: bool

 

bool IsInt64()

 

func IsInt64() -> bool

 

func IsInt64() bool

 

Function IsInt64() As bool

IsUint64

 

method IsUint64: bool

 

bool IsUint64()

 

func IsUint64() -> bool

 

func IsUint64() bool

 

Function IsUint64() As bool

Lsh

 

method Lsh(x: Memory<Int>; n: uint): Memory<Int>

 

Memory<Int> Lsh(Memory<Int> x, uint n)

 

func Lsh(_ x: Memory<Int>, _ n: uint) -> Memory<Int>

 

func Lsh(x Memory<Int>, n uint) Memory<Int>

 

Function Lsh(x As Memory<Int>, n As uint) As Memory<Int>

Parameters:

  • x:
  • n:

MarshalJSON

 

method MarshalJSON: tuple of (Slice<Byte>, error)

 

(Slice<Byte>, error) MarshalJSON()

 

func MarshalJSON() -> (Slice<Byte>, error)

 

func MarshalJSON() tuple of (Slice<Byte>, error)

 

Function MarshalJSON() As Tuple (Of Slice<Byte>, error)

MarshalText

 

method MarshalText: tuple of (text: Slice<Byte>, err: error)

 

(Slice<Byte>text, error err) MarshalText()

 

func MarshalText() -> (Slice<Byte>, error)

 

func MarshalText() tuple of (|name=text| Slice<Byte>, |name=err| error)

 

Function MarshalText() As Tuple (Of Slice<Byte>, error)

Mod

 

method Mod(x: Memory<Int>; y: Memory<Int>): Memory<Int>

 

Memory<Int> Mod(Memory<Int> x, Memory<Int> y)

 

func Mod(_ x: Memory<Int>, _ y: Memory<Int>) -> Memory<Int>

 

func Mod(x Memory<Int>, y Memory<Int>) Memory<Int>

 

Function Mod(x As Memory<Int>, y As Memory<Int>) As Memory<Int>

Parameters:

  • x:
  • y:

ModInverse

 

method ModInverse(g: Memory<Int>; n: Memory<Int>): Memory<Int>

 

Memory<Int> ModInverse(Memory<Int> g, Memory<Int> n)

 

func ModInverse(_ g: Memory<Int>, _ n: Memory<Int>) -> Memory<Int>

 

func ModInverse(g Memory<Int>, n Memory<Int>) Memory<Int>

 

Function ModInverse(g As Memory<Int>, n As Memory<Int>) As Memory<Int>

Parameters:

  • g:
  • n:

ModSqrt

 

method ModSqrt(x: Memory<Int>; p: Memory<Int>): Memory<Int>

 

Memory<Int> ModSqrt(Memory<Int> x, Memory<Int> p)

 

func ModSqrt(_ x: Memory<Int>, _ p: Memory<Int>) -> Memory<Int>

 

func ModSqrt(x Memory<Int>, p Memory<Int>) Memory<Int>

 

Function ModSqrt(x As Memory<Int>, p As Memory<Int>) As Memory<Int>

Parameters:

  • x:
  • p:

Mul

 

method Mul(x: Memory<Int>; y: Memory<Int>): Memory<Int>

 

Memory<Int> Mul(Memory<Int> x, Memory<Int> y)

 

func Mul(_ x: Memory<Int>, _ y: Memory<Int>) -> Memory<Int>

 

func Mul(x Memory<Int>, y Memory<Int>) Memory<Int>

 

Function Mul(x As Memory<Int>, y As Memory<Int>) As Memory<Int>

Parameters:

  • x:
  • y:

MulRange

 

method MulRange(a: int64; b: int64): Memory<Int>

 

Memory<Int> MulRange(int64 a, int64 b)

 

func MulRange(_ a: int64, _ b: int64) -> Memory<Int>

 

func MulRange(a int64, b int64) Memory<Int>

 

Function MulRange(a As int64, b As int64) As Memory<Int>

Parameters:

  • a:
  • b:

Neg

 

method Neg(x: Memory<Int>): Memory<Int>

 

Memory<Int> Neg(Memory<Int> x)

 

func Neg(_ x: Memory<Int>) -> Memory<Int>

 

func Neg(x Memory<Int>) Memory<Int>

 

Function Neg(x As Memory<Int>) As Memory<Int>

Parameters:

  • x:

Not

 

method Not(x: Memory<Int>): Memory<Int>

 

Memory<Int> Not(Memory<Int> x)

 

func Not(_ x: Memory<Int>) -> Memory<Int>

 

func Not(x Memory<Int>) Memory<Int>

 

Function Not(x As Memory<Int>) As Memory<Int>

Parameters:

  • x:

Or

 

method Or(x: Memory<Int>; y: Memory<Int>): Memory<Int>

 

Memory<Int> Or(Memory<Int> x, Memory<Int> y)

 

func Or(_ x: Memory<Int>, _ y: Memory<Int>) -> Memory<Int>

 

func Or(x Memory<Int>, y Memory<Int>) Memory<Int>

 

Function Or(x As Memory<Int>, y As Memory<Int>) As Memory<Int>

Parameters:

  • x:
  • y:

ProbablyPrime

 

method ProbablyPrime(n: int): bool

 

bool ProbablyPrime(int n)

 

func ProbablyPrime(_ n: int) -> bool

 

func ProbablyPrime(n int) bool

 

Function ProbablyPrime(n As int) As bool

Parameters:

  • n:

Quo

 

method Quo(x: Memory<Int>; y: Memory<Int>): Memory<Int>

 

Memory<Int> Quo(Memory<Int> x, Memory<Int> y)

 

func Quo(_ x: Memory<Int>, _ y: Memory<Int>) -> Memory<Int>

 

func Quo(x Memory<Int>, y Memory<Int>) Memory<Int>

 

Function Quo(x As Memory<Int>, y As Memory<Int>) As Memory<Int>

Parameters:

  • x:
  • y:

QuoRem

 

method QuoRem(x: Memory<Int>; y: Memory<Int>; r: Memory<Int>): tuple of (Memory<Int>, Memory<Int>)

 

(Memory<Int>, Memory<Int>) QuoRem(Memory<Int> x, Memory<Int> y, Memory<Int> r)

 

func QuoRem(_ x: Memory<Int>, _ y: Memory<Int>, _ r: Memory<Int>) -> (Memory<Int>, Memory<Int>)

 

func QuoRem(x Memory<Int>, y Memory<Int>, r Memory<Int>) tuple of (Memory<Int>, Memory<Int>)

 

Function QuoRem(x As Memory<Int>, y As Memory<Int>, r As Memory<Int>) As Tuple (Of Memory<Int>, Memory<Int>)

Parameters:

  • x:
  • y:
  • r:

Rand

 

method Rand(rnd: Memory<Rand>; n: Memory<Int>): Memory<Int>

 

Memory<Int> Rand(Memory<Rand> rnd, Memory<Int> n)

 

func Rand(_ rnd: Memory<Rand>, _ n: Memory<Int>) -> Memory<Int>

 

func Rand(rnd Memory<Rand>, n Memory<Int>) Memory<Int>

 

Function Rand(rnd As Memory<Rand>, n As Memory<Int>) As Memory<Int>

Parameters:

  • rnd:
  • n:

Rem

 

method Rem(x: Memory<Int>; y: Memory<Int>): Memory<Int>

 

Memory<Int> Rem(Memory<Int> x, Memory<Int> y)

 

func Rem(_ x: Memory<Int>, _ y: Memory<Int>) -> Memory<Int>

 

func Rem(x Memory<Int>, y Memory<Int>) Memory<Int>

 

Function Rem(x As Memory<Int>, y As Memory<Int>) As Memory<Int>

Parameters:

  • x:
  • y:

Rsh

 

method Rsh(x: Memory<Int>; n: uint): Memory<Int>

 

Memory<Int> Rsh(Memory<Int> x, uint n)

 

func Rsh(_ x: Memory<Int>, _ n: uint) -> Memory<Int>

 

func Rsh(x Memory<Int>, n uint) Memory<Int>

 

Function Rsh(x As Memory<Int>, n As uint) As Memory<Int>

Parameters:

  • x:
  • n:

Scan (ScanState, rune): error

 

method Scan(s: ScanState; ch: rune): error

 

error Scan(ScanState s, rune ch)

 

func Scan(_ s: ScanState, _ ch: rune) -> error

 

func Scan(s ScanState, ch rune) error

 

Function Scan(s As ScanState, ch As rune) As error

Parameters:

  • s:
  • ch:

Set

 

method Set(x: Memory<Int>): Memory<Int>

 

Memory<Int> Set(Memory<Int> x)

 

func Set(_ x: Memory<Int>) -> Memory<Int>

 

func Set(x Memory<Int>) Memory<Int>

 

Function Set(x As Memory<Int>) As Memory<Int>

Parameters:

  • x:

SetBit

 

method SetBit(x: Memory<Int>; i: int; b: uint): Memory<Int>

 

Memory<Int> SetBit(Memory<Int> x, int i, uint b)

 

func SetBit(_ x: Memory<Int>, _ i: int, _ b: uint) -> Memory<Int>

 

func SetBit(x Memory<Int>, i int, b uint) Memory<Int>

 

Function SetBit(x As Memory<Int>, i As int, b As uint) As Memory<Int>

Parameters:

  • x:
  • i:
  • b:

SetBits

 

method SetBits(abs: Slice<Word>): Memory<Int>

 

Memory<Int> SetBits(Slice<Word> abs)

 

func SetBits(_ abs: Slice<Word>) -> Memory<Int>

 

func SetBits(abs Slice<Word>) Memory<Int>

 

Function SetBits(abs As Slice<Word>) As Memory<Int>

Parameters:

  • abs:

SetBytes

 

method SetBytes(buf: Slice<Byte>): Memory<Int>

 

Memory<Int> SetBytes(Slice<Byte> buf)

 

func SetBytes(_ buf: Slice<Byte>) -> Memory<Int>

 

func SetBytes(buf Slice<Byte>) Memory<Int>

 

Function SetBytes(buf As Slice<Byte>) As Memory<Int>

Parameters:

  • buf:

SetInt64

 

method SetInt64(x: int64): Memory<Int>

 

Memory<Int> SetInt64(int64 x)

 

func SetInt64(_ x: int64) -> Memory<Int>

 

func SetInt64(x int64) Memory<Int>

 

Function SetInt64(x As int64) As Memory<Int>

Parameters:

  • x:

SetString

 

method SetString(s: string; base: int): tuple of (Memory<Int>, Boolean)

 

(Memory<Int>, Boolean) SetString(string s, int base)

 

func SetString(_ s: string, _ base: int) -> (Memory<Int>, Boolean)

 

func SetString(s string, base int) tuple of (Memory<Int>, Boolean)

 

Function SetString(s As string, base As int) As Tuple (Of Memory<Int>, Boolean)

Parameters:

  • s:
  • base:

SetUint64

 

method SetUint64(x: uint64): Memory<Int>

 

Memory<Int> SetUint64(uint64 x)

 

func SetUint64(_ x: uint64) -> Memory<Int>

 

func SetUint64(x uint64) Memory<Int>

 

Function SetUint64(x As uint64) As Memory<Int>

Parameters:

  • x:

Sign

 

method Sign: int

 

int Sign()

 

func Sign() -> int

 

func Sign() int

 

Function Sign() As int

Sqrt

 

method Sqrt(x: Memory<Int>): Memory<Int>

 

Memory<Int> Sqrt(Memory<Int> x)

 

func Sqrt(_ x: Memory<Int>) -> Memory<Int>

 

func Sqrt(x Memory<Int>) Memory<Int>

 

Function Sqrt(x As Memory<Int>) As Memory<Int>

Parameters:

  • x:

String

 

method String: string

 

string String()

 

func String() -> string

 

func String() string

 

Function String() As string

Sub

 

method Sub(x: Memory<Int>; y: Memory<Int>): Memory<Int>

 

Memory<Int> Sub(Memory<Int> x, Memory<Int> y)

 

func Sub(_ x: Memory<Int>, _ y: Memory<Int>) -> Memory<Int>

 

func Sub(x Memory<Int>, y Memory<Int>) Memory<Int>

 

Function Sub(x As Memory<Int>, y As Memory<Int>) As Memory<Int>

Parameters:

  • x:
  • y:

Text

 

method Text(base: int): string

 

string Text(int base)

 

func Text(_ base: int) -> string

 

func Text(base int) string

 

Function Text(base As int) As string

Parameters:

  • base:

TrailingZeroBits

 

method TrailingZeroBits: uint

 

uint TrailingZeroBits()

 

func TrailingZeroBits() -> uint

 

func TrailingZeroBits() uint

 

Function TrailingZeroBits() As uint

Uint64

 

method Uint64: uint64

 

uint64 Uint64()

 

func Uint64() -> uint64

 

func Uint64() uint64

 

Function Uint64() As uint64

UnmarshalJSON

 

method UnmarshalJSON(text: Slice<Byte>): error

 

error UnmarshalJSON(Slice<Byte> text)

 

func UnmarshalJSON(_ text: Slice<Byte>) -> error

 

func UnmarshalJSON(text Slice<Byte>) error

 

Function UnmarshalJSON(text As Slice<Byte>) As error

Parameters:

  • text:

UnmarshalText

 

method UnmarshalText(text: Slice<Byte>): error

 

error UnmarshalText(Slice<Byte> text)

 

func UnmarshalText(_ text: Slice<Byte>) -> error

 

func UnmarshalText(text Slice<Byte>) error

 

Function UnmarshalText(text As Slice<Byte>) As error

Parameters:

  • text:

Xor

 

method Xor(x: Memory<Int>; y: Memory<Int>): Memory<Int>

 

Memory<Int> Xor(Memory<Int> x, Memory<Int> y)

 

func Xor(_ x: Memory<Int>, _ y: Memory<Int>) -> Memory<Int>

 

func Xor(x Memory<Int>, y Memory<Int>) Memory<Int>

 

Function Xor(x As Memory<Int>, y As Memory<Int>) As Memory<Int>

Parameters:

  • x:
  • y:

 

Implements