forked from TrueCloudLab/tzhash
Fix linter issues
Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
This commit is contained in:
parent
2e922115d8
commit
a7201418ab
3 changed files with 4 additions and 6 deletions
|
@ -16,10 +16,8 @@ type GF127 = gf127.GF127
|
||||||
|
|
||||||
const msb64 = uint64(1) << 63
|
const msb64 = uint64(1) << 63
|
||||||
|
|
||||||
var (
|
// x127x63 represents x^127 + x^63. Used in assembly file.
|
||||||
// x127x63 represents x^127 + x^63. Used in assembly file.
|
var x127x63 = GF127{msb64, msb64} //nolint:deadcode,varcheck
|
||||||
x127x63 = GF127{msb64, msb64}
|
|
||||||
)
|
|
||||||
|
|
||||||
// Add sets c to a+b.
|
// Add sets c to a+b.
|
||||||
func Add(a, b, c *GF127)
|
func Add(a, b, c *GF127)
|
||||||
|
|
|
@ -17,7 +17,7 @@ var _ hash.Hash = (*digest)(nil)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
minmax = [2]GF127{{0, 0}, {math.MaxUint64, math.MaxUint64}}
|
minmax = [2]GF127{{0, 0}, {math.MaxUint64, math.MaxUint64}}
|
||||||
x127x63 = GF127{1 << 63, 1 << 63}
|
x127x63 = GF127{1 << 63, 1 << 63} //nolint:deadcode,varcheck
|
||||||
)
|
)
|
||||||
|
|
||||||
func newAVX() *digest {
|
func newAVX() *digest {
|
||||||
|
|
|
@ -54,7 +54,7 @@ func (c *sl2) UnmarshalBinary(data []byte) (err error) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c *sl2) mulStrassen(a, b *sl2, x *[8]GF127) *sl2 {
|
func (c *sl2) mulStrassen(a, b *sl2, x *[8]GF127) *sl2 { //nolint:unused
|
||||||
// strassen algorithm
|
// strassen algorithm
|
||||||
avx.Add(&a[0][0], &a[1][1], &x[0])
|
avx.Add(&a[0][0], &a[1][1], &x[0])
|
||||||
avx.Add(&b[0][0], &b[1][1], &x[1])
|
avx.Add(&b[0][0], &b[1][1], &x[1])
|
||||||
|
|
Loading…
Reference in a new issue