github.com/emmansun/gmsm@v0.29.1/internal/cpuid/cpuid_arm64_darwin.go (about)

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