]> Cypherpunks repositories - gostls13.git/commit
math/big: fast path for Cmp if same
authorIllya Yalovyy <yalovoy@gmail.com>
Sun, 26 May 2019 03:44:13 +0000 (20:44 -0700)
committerBrad Fitzpatrick <bradfitz@golang.org>
Wed, 28 Aug 2019 15:08:00 +0000 (15:08 +0000)
commitbe452cea422114160e192625ac11e83c0fd2b9e3
tree223e968a127e05e74414ffe4b73d2bfad6d35df1
parent1abe22c3c17091e46c0abec897691c23ad6ebc01
math/big: fast path for Cmp if same

math/big.Int Cmp method does not have a fast path for the case if x and y are the same.

Fixes #30856

Change-Id: Ia9a5b5f72db9d73af1b13ed6ac39ecff87d10393
Reviewed-on: https://go-review.googlesource.com/c/go/+/178957
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Robert Griesemer <gri@golang.org>
src/math/big/int.go
src/math/big/int_test.go