func DisableBMI2() func()
DisableBMI2 will disable BMI2, for testing purposes. Call returned function to restore previous state.
func HasBMI() bool
HasBMI checks whether an x86 CPU supports both BMI1 and BMI2 extensions.
func HasBMI1() bool
HasBMI1 checks whether an x86 CPU supports the BMI1 extension.
func HasBMI2() bool
HasBMI2 checks whether an x86 CPU supports the BMI2 extension.