package cpuid
Import Path
github.com/segmentio/asm/cpu/cpuid (on go.dev)
Dependency Relation
imports 0 packages, and imported by 3 packages
Involved Source Files
Package cpuid provides generic types used to represent CPU features supported
by the architecture.
Package-Level Type Names (total 2, both are exported)
CPU is a bitset of feature flags representing the capabilities of various CPU
architeectures that this package provides optimized assembly routines for.
The intent is to provide a stable ABI between the Go code that generate the
assembly, and the program that uses the library functions.
( CPU) Has(feature Feature) bool
(*CPU) Set(feature Feature, enabled bool)
Package-Level Constants (total 2, both are exported)
All is a Feature value that has all CPU features enabled.
None is a Feature value that has no CPU features enabled.
The pages are generated with Golds v0.6.7. (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 @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |