gmsm/internal/cpuid/cpuid_arm64_darwin.go
2025-02-26 08:25:58 +08:00

14 lines
389 B
Go

//go:build arm64 && darwin && !ios
package cpuid
// There are no hw.optional sysctl values for the below features on Mac OS 11.0
// to detect their supported state dynamically. Assume the CPU features that
// Apple Silicon M1 supports to be available as a minimal set of features
// to all Go programs running on darwin/arm64.
var (
HasAES = true
HasGFMUL = true
HasVPMSUMD = false
)