Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for abs (0.25 sec)

  1. misc/cgo/gmp/gmp.go

    // Neg sets z = -x and returns z.
    func (z *Int) Neg(x *Int) *Int {
    	x.doinit()
    	z.doinit()
    	C.mpz_neg(&z.i[0], &x.i[0])
    	return z
    }
    
    // Abs sets z to the absolute value of x and returns z.
    func (z *Int) Abs(x *Int) *Int {
    	x.doinit()
    	z.doinit()
    	C.mpz_abs(&z.i[0], &x.i[0])
    	return z
    }
    
    /*
     * functions without a clear receiver
     */
    
    // CmpInt compares x and y. The result is
    //
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Apr 11 16:34:30 GMT 2022
    - 9.5K bytes
    - Viewed (0)
Back to top