diff options
| author | chanxuehong <chanxuehong@gmail.com> | 2023-08-17 01:58:22 +0000 |
|---|---|---|
| committer | Gopher Robot <gobot@golang.org> | 2023-08-17 16:42:19 +0000 |
| commit | aaa384cf3a510a1f1945010e2c0e2ba8d0282f91 (patch) | |
| tree | b8c58c261a9a2b247e154b74be9c937c8ff486c7 /src/math/big | |
| parent | 36fc721419f0fd9e2088f67b3bc43e8869f4a4c8 (diff) | |
| download | go-aaa384cf3a510a1f1945010e2c0e2ba8d0282f91.tar.xz | |
math/big, math/rand: use the built-in max function
Change-Id: I71a38dd20bfaf2b1aed18892d54eeb017d3d7d66
GitHub-Last-Rev: 8da43b2cbd563ed123690709e519c9f84272b332
GitHub-Pull-Request: golang/go#61955
Reviewed-on: https://go-review.googlesource.com/c/go/+/518595
Run-TryBot: Ian Lance Taylor <iant@google.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Auto-Submit: Ian Lance Taylor <iant@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Reviewed-by: qiulaidongfeng <2645477756@qq.com>
Diffstat (limited to 'src/math/big')
| -rw-r--r-- | src/math/big/nat.go | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/math/big/nat.go b/src/math/big/nat.go index 90ce6d19c4..b9f4026a04 100644 --- a/src/math/big/nat.go +++ b/src/math/big/nat.go @@ -389,13 +389,6 @@ func addAt(z, x nat, i int) { } } -func max(x, y int) int { - if x > y { - return x - } - return y -} - // karatsubaLen computes an approximation to the maximum k <= n such that // k = p<<i for a number p <= threshold and an i >= 0. Thus, the // result is the largest number that can be divided repeatedly by 2 before |
