This repository has been archived on 2023-05-01. You can view files and clone it, but cannot push or open issues or pull requests.
2020-08-04 22:13:57 +00:00
|
|
|
// +build !darwin
|
|
|
|
|
|
|
|
package blake3
|
|
|
|
|
2021-09-06 16:38:15 +00:00
|
|
|
import "github.com/klauspost/cpuid/v2"
|
2020-08-04 22:13:57 +00:00
|
|
|
|
|
|
|
var (
|
2021-09-06 16:38:15 +00:00
|
|
|
haveAVX2 = cpuid.CPU.Supports(cpuid.AVX2)
|
|
|
|
haveAVX512 = cpuid.CPU.Supports(cpuid.AVX512F)
|
2020-08-04 22:13:57 +00:00
|
|
|
)
|