Source File
cpu.go
Belonging Package
simd/archsimd
// Code generated by x/arch/internal/simdgen using 'go run . -xedPath $XED_PATH -o godefs -goroot $GOROOT go.yaml types.yaml categories.yaml'; DO NOT EDIT.//go:build goexperiment.simdpackage archsimdimporttype X86Features struct{}var X86 X86Features// AES returns whether the CPU supports the AES feature.//// AES is defined on all GOARCHes, but will only return true on// GOARCH amd64.func (X86Features) () bool {return cpu.X86.HasAES}// AVX returns whether the CPU supports the AVX feature.//// AVX is defined on all GOARCHes, but will only return true on// GOARCH amd64.func (X86Features) () bool {return cpu.X86.HasAVX}// AVX2 returns whether the CPU supports the AVX2 feature.//// AVX2 is defined on all GOARCHes, but will only return true on// GOARCH amd64.func (X86Features) () bool {return cpu.X86.HasAVX2}// AVX512 returns whether the CPU supports the AVX512F+CD+BW+DQ+VL features.//// These five CPU features are bundled together, and no use of AVX-512// is allowed unless all of these features are supported together.// Nearly every CPU that has shipped with any support for AVX-512 has// supported all five of these features.//// AVX512 is defined on all GOARCHes, but will only return true on// GOARCH amd64.func (X86Features) () bool {return cpu.X86.HasAVX512}// AVX512BITALG returns whether the CPU supports the AVX512BITALG feature.//// AVX512BITALG is defined on all GOARCHes, but will only return true on// GOARCH amd64.func (X86Features) () bool {return cpu.X86.HasAVX512BITALG}// AVX512GFNI returns whether the CPU supports the AVX512GFNI feature.//// AVX512GFNI is defined on all GOARCHes, but will only return true on// GOARCH amd64.func (X86Features) () bool {return cpu.X86.HasAVX512GFNI}// AVX512VAES returns whether the CPU supports the AVX512VAES feature.//// AVX512VAES is defined on all GOARCHes, but will only return true on// GOARCH amd64.func (X86Features) () bool {return cpu.X86.HasAVX512VAES}// AVX512VBMI returns whether the CPU supports the AVX512VBMI feature.//// AVX512VBMI is defined on all GOARCHes, but will only return true on// GOARCH amd64.func (X86Features) () bool {return cpu.X86.HasAVX512VBMI}// AVX512VBMI2 returns whether the CPU supports the AVX512VBMI2 feature.//// AVX512VBMI2 is defined on all GOARCHes, but will only return true on// GOARCH amd64.func (X86Features) () bool {return cpu.X86.HasAVX512VBMI2}// AVX512VNNI returns whether the CPU supports the AVX512VNNI feature.//// AVX512VNNI is defined on all GOARCHes, but will only return true on// GOARCH amd64.func (X86Features) () bool {return cpu.X86.HasAVX512VNNI}// AVX512VPCLMULQDQ returns whether the CPU supports the AVX512VPCLMULQDQ feature.//// AVX512VPCLMULQDQ is defined on all GOARCHes, but will only return true on// GOARCH amd64.func (X86Features) () bool {return cpu.X86.HasAVX512VPCLMULQDQ}// AVX512VPOPCNTDQ returns whether the CPU supports the AVX512VPOPCNTDQ feature.//// AVX512VPOPCNTDQ is defined on all GOARCHes, but will only return true on// GOARCH amd64.func (X86Features) () bool {return cpu.X86.HasAVX512VPOPCNTDQ}// AVXVNNI returns whether the CPU supports the AVXVNNI feature.//// AVXVNNI is defined on all GOARCHes, but will only return true on// GOARCH amd64.func (X86Features) () bool {return cpu.X86.HasAVXVNNI}// SHA returns whether the CPU supports the SHA feature.//// SHA is defined on all GOARCHes, but will only return true on// GOARCH amd64.func (X86Features) () bool {return cpu.X86.HasSHA}
![]() |
The pages are generated with Golds v0.8.3-preview. (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. |