Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for exp (0.2 sec)

  1. misc/cgo/gmp/gmp.go

    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
    }
    
    // Exp sets z = x^y % m and returns z.
    // If m == nil, Exp sets z = x^y.
    func (z *Int) Exp(x, y, m *Int) *Int {
    	m.doinit()
    	x.doinit()
    	y.doinit()
    	z.doinit()
    	if m == nil {
    		C.mpz_pow_ui(&z.i[0], &x.i[0], C.mpz_get_ui(&y.i[0]))
    	} else {
    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