diff --git a/src/math/big/nat.go b/src/math/big/nat.go index 3b5c0f6e72..17d5b8ae2b 100644 --- a/src/math/big/nat.go +++ b/src/math/big/nat.go @@ -991,7 +991,7 @@ func (z nat) expNN(x, y, m nat) nat { // otherwise the arguments would alias. var zz, r nat for j := 0; j < w; j++ { - zz = zz.mul(z, z) + zz = zz.sqr(z) zz, z = z, zz if v&mask != 0 { @@ -1011,7 +1011,7 @@ func (z nat) expNN(x, y, m nat) nat { v = y[i] for j := 0; j < _W; j++ { - zz = zz.mul(z, z) + zz = zz.sqr(z) zz, z = z, zz if v&mask != 0 { @@ -1044,7 +1044,7 @@ func (z nat) expNNWindowed(x, y, m nat) nat { powers[1] = x for i := 2; i < 1<