diff options
| author | 2026-03-06 18:38:44 +0800 | |
|---|---|---|
| committer | 2026-03-06 18:58:30 +0800 | |
| commit | f2922155de01b734e3e8b3f50be8f263ec13cacd (patch) | |
| tree | 6dcfcf5689e63eea09314dce543e1de26cab89fe /internal/adler32 | |
| parent | internal/compress: Format (diff) | |
| signature | No signature | |
*: Lint v0.1.68
Diffstat (limited to 'internal/adler32')
| -rw-r--r-- | internal/adler32/adler32_amd64.go | 1 | ||||
| -rw-r--r-- | internal/adler32/bench_test.go | 1 |
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 |
