Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for mpz_clear (0.09 sec)

  1. misc/cgo/gmp/gmp.go

    		return "nil"
    	}
    	z.doinit()
    	p := C.mpz_get_str(nil, 10, &z.i[0])
    	s := C.GoString(p)
    	C.free(unsafe.Pointer(p))
    	return s
    }
    
    func (z *Int) destroy() {
    	if z.init {
    		C.mpz_clear(&z.i[0])
    	}
    	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()
    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