Versions in this module Expand all Collapse all v1 v1.0.9 Apr 20, 2018 Changes in this version + const IntBits + const MaxInt + const MaxUint + const MinInt + const UintPtrBits + func AddUint128_64(a, b uint64) (hi uint64, lo uint64) + func BitLen(n int) int + func BitLenByte(n byte) int + func BitLenUint(n uint) int + func BitLenUint16(n uint16) int + func BitLenUint32(n uint32) int + func BitLenUint64(n uint64) int + func BitLenUintptr(n uintptr) int + func Envelope(x float64, points []float64, approximation Approximation) float64 + func GCDByte(a, b byte) byte + func GCDUint16(a, b uint16) uint16 + func GCDUint32(a, b uint32) uint32 + func GCDUint64(a, b uint64) uint64 + func ISqrt(n uint32) (x uint32) + func IsPrime(n uint32) bool + func IsPrimeUint16(n uint16) bool + func IsPrimeUint64(n uint64) bool + func Log2Byte(n byte) int + func Log2Uint16(n uint16) int + func Log2Uint32(n uint32) int + func Log2Uint64(n uint64) int + func Max(a, b int) int + func MaxByte(a, b byte) byte + func MaxInt16(a, b int16) int16 + func MaxInt32(a, b int32) int32 + func MaxInt64(a, b int64) int64 + func MaxInt8(a, b int8) int8 + func MaxUint16(a, b uint16) uint16 + func MaxUint32(a, b uint32) uint32 + func MaxUint64(a, b uint64) uint64 + func Min(a, b int) int + func MinByte(a, b byte) byte + func MinInt16(a, b int16) int16 + func MinInt32(a, b int32) int32 + func MinInt64(a, b int64) int64 + func MinInt8(a, b int8) int8 + func MinUint16(a, b uint16) uint16 + func MinUint32(a, b uint32) uint32 + func MinUint64(a, b uint64) uint64 + func ModPowBigInt(b, e, m *big.Int) (r *big.Int) + func ModPowByte(b, e, m byte) byte + func ModPowUint16(b, e, m uint16) uint16 + func ModPowUint32(b, e, m uint32) uint32 + func ModPowUint64(b, e, m uint64) (r uint64) + func MulUint128_64(a, b uint64) (hi, lo uint64) + func NextPrime(n uint32) (p uint32, ok bool) + func NextPrimeUint16(n uint16) (p uint16, ok bool) + func NextPrimeUint64(n uint64) (p uint64, ok bool) + func PermutationFirst(data sort.Interface) + func PermutationNext(data sort.Interface) bool + func PopCount(n int) int + func PopCountBigInt(n *big.Int) (r int) + func PopCountByte(n byte) int + func PopCountUint(n uint) int + func PopCountUint16(n uint16) int + func PopCountUint32(n uint32) int + func PopCountUint64(n uint64) int + func PopCountUintptr(n uintptr) int + func PowerizeBigInt(b, n *big.Int) (e uint32, p *big.Int) + func PowerizeUint32BigInt(b uint32, n *big.Int) (e uint32, p *big.Int) + func PrimorialProductsUint32(lo, hi, max uint32) (r []uint32) + func ProbablyPrimeBigInt(n, a *big.Int) bool + func ProbablyPrimeBigInt_32(n *big.Int, a uint32) bool + func ProbablyPrimeUint32(n, a uint32) bool + func ProbablyPrimeUint64_32(n uint64, a uint32) bool + func QCmpUint32(a, b, c, d uint32) int + func QScaleUint32(b, c, d uint32) (a uint64) + func SqrtBig(n *big.Int) (x *big.Int) + func SqrtUint64(n uint64) (x uint64) + func ToBase(n *big.Int, b int) []int + func UMax(a, b uint) uint + func UMin(a, b uint) uint + func UintptrBits() int + type Approximation int + const Linear + const Sinusoidal + type FC32 struct + func NewFC32(lo, hi int, hq bool) (r *FC32, err error) + func (r *FC32) Cycle() int64 + func (r *FC32) Next() int + func (r *FC32) Pos() int64 + func (r *FC32) Prev() int + func (r *FC32) Seed(seed int64) + func (r *FC32) Seek(pos int64) + type FCBig struct + func NewFCBig(lo, hi *big.Int, hq bool) (r *FCBig, err error) + func (r *FCBig) Cycle() *big.Int + func (r *FCBig) Next() *big.Int + func (r *FCBig) Pos() *big.Int + func (r *FCBig) Prev() *big.Int + func (r *FCBig) Seed(seed int64) + func (r *FCBig) Seek(pos *big.Int) + type FactorTerm struct + Power uint32 + Prime uint32 + type FactorTerms []FactorTerm + func FactorInt(n uint32) (f FactorTerms)