Exemple #1
0
// Or sets z = x | y and returns z.
func (z *Int) Or(x, y *Int) *Int {
	z.doinit()
	x.doinit()
	y.doinit()
	C.mpz_ior(z.ptr, x.ptr, y.ptr)
	return z
}
Exemple #2
0
// Or sets z = x | y and returns z.
func (z *Int) Or(x, y *Int) *Int {
	x.doinit()
	y.doinit()
	z.doinit()
	C.mpz_ior(&z.i[0], &x.i[0], &y.i[0])
	return z
}