Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for mpz_add (0.07 sec)

  1. misc/cgo/gmp/gmp.go

    	}
    	z.init = false
    }
    
    /*
     * arithmetic
     */
    
    // Add sets z = x + y and returns z.
    func (z *Int) Add(x, y *Int) *Int {
    	x.doinit()
    	y.doinit()
    	z.doinit()
    	C.mpz_add(&z.i[0], &x.i[0], &y.i[0])
    	return z
    }
    
    // Sub sets z = x - y and returns z.
    func (z *Int) Sub(x, y *Int) *Int {
    	x.doinit()
    	y.doinit()
    	z.doinit()
    	C.mpz_sub(&z.i[0], &x.i[0], &y.i[0])
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Mon Apr 11 16:34:30 UTC 2022
    - 9.5K bytes
    - Viewed (0)
Back to top