git.sr.ht/~pingoo/stdx@v0.0.0-20240218134121-094174641f6e/crypto/internal/blake3/cpu.go (about) 1 // +build !darwin 2 3 package blake3 4 5 import "github.com/klauspost/cpuid/v2" 6 7 var ( 8 haveAVX2 = cpuid.CPU.Supports(cpuid.AVX2) 9 haveAVX512 = cpuid.CPU.Supports(cpuid.AVX512F) 10 )