Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for pow (0.18 sec)

  1. misc/cgo/gmp/gmp.go

    }
    
    // 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 {
    		C.mpz_powm(&z.i[0], &x.i[0], &y.i[0], &m.i[0])
    	}
    	return z
    }
    
    func (z *Int) Int64() int64 {
    	if !z.init {
    		return 0
    	}
    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