mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2024-11-01 15:00:00 +00:00
18 lines
289 B
Go
18 lines
289 B
Go
package consts
|
|
|
|
import (
|
|
"os"
|
|
|
|
"golang.org/x/sys/cpu"
|
|
)
|
|
|
|
var (
|
|
HasAVX2 = cpu.X86.HasAVX2 &&
|
|
os.Getenv("BLAKE3_DISABLE_AVX2") == "" &&
|
|
os.Getenv("BLAKE3_PUREGO") == ""
|
|
|
|
HasSSE41 = cpu.X86.HasSSE41 &&
|
|
os.Getenv("BLAKE3_DISABLE_SSE41") == "" &&
|
|
os.Getenv("BLAKE3_PUREGO") == ""
|
|
)
|