cpuid

package
v0.0.0-...-bb1a4e7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 9, 2020 License: GPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CpuFeatures

type CpuFeatures struct {
	HasBMI2     bool `json:"bmi_2"`
	HasOSXSAVE  bool `json:"osxsave"`
	HasAES      bool `json:"aes"`
	HasVAES     bool `json:"vaes"`
	HasAVX      bool `json:"avx"`
	HasAVX512F  bool `json:"avx_512_f"`
	HasAVX512VL bool `json:"avx_512_vl"`
	HasAVX512DQ bool `json:"avx_512_dq"`

	HasSSE2      bool `json:"sse_2"`
	HasSSE3      bool `json:"sse_3"`
	HasPCLMULQDQ bool `json:"pclmulqdq"`
	HasSSSE3     bool `json:"ssse_3"`
	HasFMA       bool `json:"fma"`
	HasSSE41     bool `json:"sse_41"`
	HasSSE42     bool `json:"sse_42"`
	HasPOPCNT    bool `json:"popcnt"`
	HasBMI1      bool `json:"bmi_1"`
	HasAVX2      bool `json:"avx_2"`
	HasERMS      bool `json:"erms"`
	HasADX       bool `json:"adx"`

	EnabledAVX    bool `json:"enabled_avx"`
	EnabledAVX512 bool `json:"enabled_avx_512"`
}

func GetCpuFeatures

func GetCpuFeatures() CpuFeatures

func GetCpuFeaturesPtr

func GetCpuFeaturesPtr() *CpuFeatures

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL