commit | 28ddfb090c2824d60e30007cf171b5dc1e8935e2 | [log] [tgz] |
---|---|---|
author | Robert Griesemer <gri@golang.org> | Thu Oct 02 13:02:25 2014 -0700 |
committer | Robert Griesemer <gri@golang.org> | Thu Oct 02 13:02:25 2014 -0700 |
tree | f87dfd16eb329d48501e74fc671fb4694c11c5fc | |
parent | 1dba6eb4645f0528ed1ce5e0dd5a4661afa8bd07 [diff] |
math/big: math.Exp should return result >= 0 for |m| > 0 The documentation states that Exp(x, y, m) computes x**y mod |m| for m != nil && m > 0. In math.big, Mod is the Euclidean modulus, which is always >= 0. Fixes #8822. LGTM=agl, r, rsc R=agl, r, rsc CC=golang-codereviews https://golang.org/cl/145650043