14 lines
334 B
Go
14 lines
334 B
Go
package ints
|
|
|
|
import "math/big"
|
|
|
|
func CopyBig(i *big.Int) *big.Int { return (&big.Int{}).Set(i) }
|
|
|
|
func DivBig(x, y *big.Int) *big.Int { return x.Div(x, y) }
|
|
|
|
func MulBig(x, y *big.Int) *big.Int { return x.Mul(x, y) }
|
|
|
|
func PowTenBig(p int) *big.Int { return Big.PowTen(p) }
|
|
|
|
func RepunitBig(k int) *big.Int { return Big.Repunit(k) }
|