Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for UINT (0.14 sec)

  1. misc/cgo/gmp/gmp.go

    	C.mpz_tdiv_r(&z.i[0], &x.i[0], &y.i[0])
    	return z
    }
    
    // Lsh sets z = x << s and returns z.
    func (z *Int) Lsh(x *Int, s uint) *Int {
    	x.doinit()
    	z.doinit()
    	C._mpz_mul_2exp(&z.i[0], &x.i[0], C.ulong(s))
    	return z
    }
    
    // Rsh sets z = x >> s and returns z.
    func (z *Int) Rsh(x *Int, s uint) *Int {
    	x.doinit()
    	z.doinit()
    	C._mpz_div_2exp(&z.i[0], &x.i[0], C.ulong(s))
    	return z
    }
    
    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