]> Cypherpunks repositories - gostls13.git/commit
math/big: fix ModSqrt optimized path for x = z
authorFilippo Valsorda <hi@filippo.io>
Sat, 14 Oct 2017 16:33:13 +0000 (12:33 -0400)
committerRobert Griesemer <gri@golang.org>
Mon, 16 Oct 2017 21:41:44 +0000 (21:41 +0000)
commitf75158c36530ba902a011a69243d1d51c1ba3a46
tree5d6d753d17a871cd6a55b34549fcd34371615515
parent913fb18e7e16b95ef4f3c491c3079c4f80e4c562
math/big: fix ModSqrt optimized path for x = z

name                   old time/op  new time/op  delta
ModSqrt224_3Mod4-4      153µs ± 2%   154µs ± 1%   ~     (p=0.548 n=5+5)
ModSqrt5430_3Mod4-4     776ms ± 2%   791ms ± 2%   ~     (p=0.222 n=5+5)

Fixes #22265

Change-Id: If233542716e04341990a45a1c2b7118da6d233f7
Reviewed-on: https://go-review.googlesource.com/70832
Run-TryBot: Filippo Valsorda <hi@filippo.io>
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