mirror of
https://github.com/golang/go
synced 2024-11-02 08:01:26 +00:00
math/big: gofmt nat_test.go
Was apparently checked in by https://go-review.googlesource.com/#/c/9253/ without being gofmt-ed. TBR: agl Change-Id: I4d011dbaa15b7c5e73ca71f724f32951a0302dae Reviewed-on: https://go-review.googlesource.com/10353 Reviewed-by: Robert Griesemer <gri@golang.org>
This commit is contained in:
parent
9279684908
commit
c344f751fc
1 changed files with 4 additions and 4 deletions
|
@ -333,9 +333,9 @@ func TestTrailingZeroBits(t *testing.T) {
|
||||||
}
|
}
|
||||||
|
|
||||||
var montgomeryTests = []struct {
|
var montgomeryTests = []struct {
|
||||||
x, y, m string
|
x, y, m string
|
||||||
k0 uint64
|
k0 uint64
|
||||||
out32, out64 string
|
out32, out64 string
|
||||||
}{
|
}{
|
||||||
{
|
{
|
||||||
"0xffffffffffffffffffffffffffffffffffffffffffffffffe",
|
"0xffffffffffffffffffffffffffffffffffffffffffffffffe",
|
||||||
|
@ -384,7 +384,7 @@ func TestMontgomery(t *testing.T) {
|
||||||
out = natFromString(test.out64)
|
out = natFromString(test.out64)
|
||||||
}
|
}
|
||||||
|
|
||||||
k0 := Word(test.k0 & _M) // mask k0 to ensure that it fits for 32-bit systems.
|
k0 := Word(test.k0 & _M) // mask k0 to ensure that it fits for 32-bit systems.
|
||||||
z := nat(nil).montgomery(x, y, m, k0, len(m))
|
z := nat(nil).montgomery(x, y, m, k0, len(m))
|
||||||
z = z.norm()
|
z = z.norm()
|
||||||
if z.cmp(out) != 0 {
|
if z.cmp(out) != 0 {
|
||||||
|
|
Loading…
Reference in a new issue