Source File
cpuid_amd64.go
Belonging Package
github.com/tetratelabs/wazero/internal/platform
package platformimport// CpuFeatures exposes the capabilities for this CPU, queried via the Has method.var CpuFeatures = loadCpuFeatureFlags()func loadCpuFeatureFlags() ( CpuFeatureFlags) {if cpu.X86.HasSSE41 {|= CpuFeatureAmd64SSE4_1}if cpu.X86.HasBMI1 {|= CpuFeatureAmd64BMI1}// x/sys/cpu does not track the ABM explicitly.// LZCNT combined with BMI1 and BMI2 completes the expanded ABM instruction set.// Intel includes LZCNT in BMI1, and all AMD CPUs with POPCNT also have LZCNT.if cpu.X86.HasBMI1 && cpu.X86.HasBMI2 && cpu.X86.HasPOPCNT {|= CpuFeatureAmd64ABM}return}
![]() |
The pages are generated with Golds v0.8.2. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |