Source file src/vendor/golang.org/x/sys/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 //go:generate go run golang.org/x/sys/windows/mkwinsyscall -systemdll=false -output zcpu_windows.go cpu_windows.go 8 9 //sys isProcessorFeaturePresent(ProcessorFeature uint32) (ret bool) = kernel32.IsProcessorFeaturePresent 10 11 // The processor features to be tested for IsProcessorFeaturePresent, see 12 // https://learn.microsoft.com/en-us/windows/win32/api/processthreadsapi/nf-processthreadsapi-isprocessorfeaturepresent 13 const ( 14 _PF_ARM_V8_CRYPTO_INSTRUCTIONS_AVAILABLE = 30 15 _PF_ARM_V8_CRC32_INSTRUCTIONS_AVAILABLE = 31 16 _PF_ARM_V81_ATOMIC_INSTRUCTIONS_AVAILABLE = 34 17 _PF_ARM_V82_DP_INSTRUCTIONS_AVAILABLE = 43 18 19 _PF_ARM_V83_JSCVT_INSTRUCTIONS_AVAILABLE = 44 20 _PF_ARM_V83_LRCPC_INSTRUCTIONS_AVAILABLE = 45 21 _PF_ARM_SVE_INSTRUCTIONS_AVAILABLE = 46 22 _PF_ARM_SVE2_INSTRUCTIONS_AVAILABLE = 47 23 24 _PF_ARM_SHA3_INSTRUCTIONS_AVAILABLE = 64 25 _PF_ARM_SHA512_INSTRUCTIONS_AVAILABLE = 65 26 ) 27