package cpuinfo

Import Path
	github.com/klauspost/compress/internal/cpuinfo (on go.dev)

Dependency Relation
	imports 0 packages, and imported by 2 packages

Involved Source Files Package cpuinfo gives runtime info about the current CPU. This is a very limited module meant for use internally in this project. For more versatile solution check https://github.com/klauspost/cpuid. cpuinfo_amd64.go cpuinfo_amd64.s
Package-Level Functions (total 4)
DisableBMI2 will disable BMI2, for testing purposes. Call returned function to restore previous state.
HasBMI checks whether an x86 CPU supports both BMI1 and BMI2 extensions.
HasBMI1 checks whether an x86 CPU supports the BMI1 extension.
HasBMI2 checks whether an x86 CPU supports the BMI2 extension.