diff options
| author | Robert Griesemer <gri@golang.org> | 2014-10-02 13:02:25 -0700 |
|---|---|---|
| committer | Robert Griesemer <gri@golang.org> | 2014-10-02 13:02:25 -0700 |
| commit | 28ddfb090c2824d60e30007cf171b5dc1e8935e2 (patch) | |
| tree | f87dfd16eb329d48501e74fc671fb4694c11c5fc /src/runtime/malloc.h | |
| parent | 1dba6eb4645f0528ed1ce5e0dd5a4661afa8bd07 (diff) | |
| download | go-28ddfb090c2824d60e30007cf171b5dc1e8935e2.tar.xz | |
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
Diffstat (limited to 'src/runtime/malloc.h')
0 files changed, 0 insertions, 0 deletions
