aboutsummaryrefslogtreecommitdiff
path: root/internal/adler32
diff options
context:
space:
mode:
authorGravatar Runxi Yu2026-03-06 18:38:44 +0800
committerGravatar Runxi Yu2026-03-06 18:58:30 +0800
commitf2922155de01b734e3e8b3f50be8f263ec13cacd (patch)
tree6dcfcf5689e63eea09314dce543e1de26cab89fe /internal/adler32
parentinternal/compress: Format (diff)
signatureNo signature
*: Lint v0.1.68
Diffstat (limited to 'internal/adler32')
-rw-r--r--internal/adler32/adler32_amd64.go1
-rw-r--r--internal/adler32/bench_test.go1
2 files changed, 2 insertions, 0 deletions
diff --git a/internal/adler32/adler32_amd64.go b/internal/adler32/adler32_amd64.go
index 7dfab299..7c3d4746 100644
--- a/internal/adler32/adler32_amd64.go
+++ b/internal/adler32/adler32_amd64.go
@@ -14,6 +14,7 @@ import (
// Size of an Adler-32 checksum in bytes.
const Size = 4
+//nolint:gochecknoglobals
var hasAVX2 = cpu.X86.HasAVX2
// digest represents the partial evaluation of a checksum.
diff --git a/internal/adler32/bench_test.go b/internal/adler32/bench_test.go
index d2aebe8f..1161221a 100644
--- a/internal/adler32/bench_test.go
+++ b/internal/adler32/bench_test.go
@@ -8,6 +8,7 @@ import (
const benchmarkSize = 64 * 1024
+//nolint:gochecknoglobals
var data = make([]byte, benchmarkSize)
func init() { //nolint:gochecknoinits