cpuid_unsupported.go

 1//go:build !(amd64 || arm64) || !gc
 2
 3package platform
 4
 5var CpuFeatures CpuFeatureFlags = &cpuFeatureFlags{}
 6
 7// cpuFeatureFlags implements CpuFeatureFlags for unsupported platforms.
 8type cpuFeatureFlags struct{}
 9
10// Has implements the same method on the CpuFeatureFlags interface.
11func (c *cpuFeatureFlags) Has(cpuFeature CpuFeature) bool { return false }
12
13// HasExtra implements the same method on the CpuFeatureFlags interface.
14func (c *cpuFeatureFlags) HasExtra(cpuFeature CpuFeature) bool { return false }
15
16// Raw implements the same method on the CpuFeatureFlags interface.
17func (c *cpuFeatureFlags) Raw() uint64 { return 0 }