Source file src/internal/cpu/cpu_windows.go

     1  // Copyright 2026 The Go Authors. All rights reserved.
     2  // Use of this source code is governed by a BSD-style
     3  // license that can be found in the LICENSE file.
     4  
     5  package cpu
     6  
     7  import _ "unsafe" // for linkname
     8  
     9  const (
    10  	_PF_ARM_V8_CRYPTO_INSTRUCTIONS_AVAILABLE  = 30
    11  	_PF_ARM_V8_CRC32_INSTRUCTIONS_AVAILABLE   = 31
    12  	_PF_ARM_V81_ATOMIC_INSTRUCTIONS_AVAILABLE = 34
    13  	_PF_ARM_SHA3_INSTRUCTIONS_AVAILABLE       = 64
    14  	_PF_ARM_SHA512_INSTRUCTIONS_AVAILABLE     = 65
    15  )
    16  
    17  // isProcessorFeaturePresent calls windows IsProcessorFeaturePresent API.
    18  //
    19  //go:linkname isProcessorFeaturePresent
    20  func isProcessorFeaturePresent(processorFeature uint32) bool // Implemented in runtime package.
    21  

View as plain text