示例#1
0
// Set sets z = x and returns z.
func (z *Int) Set(x *Int) *Int {
	z.doinit()
	C.mpz_set(&z.i[0], &x.i[0])
	return z
}
示例#2
0
文件: int.go 项目: jamesadney/gmp
// Set sets z = x and returns z.
func (z *Int) Set(x *Int) *Int {
	z.doinit()
	C.mpz_set(z.ptr, x.ptr)
	return z
}