BigPow returns a ** b as a big integer.
(a, b int64)
| 103 | |
| 104 | // BigPow returns a ** b as a big integer. |
| 105 | func BigPow(a, b int64) *big.Int { |
| 106 | r := big.NewInt(a) |
| 107 | return r.Exp(r, big.NewInt(b), nil) |
| 108 | } |
| 109 | |
| 110 | // BigMax returns the larger of x or y. |
| 111 | func BigMax(x, y *big.Int) *big.Int { |
no outgoing calls