Fix linter issues

Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
This commit is contained in:
Evgenii Stratonikov 2021-12-29 13:19:45 +03:00 committed by Alex Vanin
parent 2e922115d8
commit a7201418ab
3 changed files with 4 additions and 6 deletions

View file

@ -16,10 +16,8 @@ type GF127 = gf127.GF127
const msb64 = uint64(1) << 63
var (
// x127x63 represents x^127 + x^63. Used in assembly file.
x127x63 = GF127{msb64, msb64}
)
var x127x63 = GF127{msb64, msb64} //nolint:deadcode,varcheck
// Add sets c to a+b.
func Add(a, b, c *GF127)

View file

@ -17,7 +17,7 @@ var _ hash.Hash = (*digest)(nil)
var (
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 {

View file

@ -54,7 +54,7 @@ func (c *sl2) UnmarshalBinary(data []byte) (err error) {
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
avx.Add(&a[0][0], &a[1][1], &x[0])
avx.Add(&b[0][0], &b[1][1], &x[1])