HasBMI2 checks whether an x86 CPU supports the BMI2 extension.
()
| 12 | |
| 13 | // HasBMI2 checks whether an x86 CPU supports the BMI2 extension. |
| 14 | func HasBMI2() bool { |
| 15 | return hasBMI2 |
| 16 | } |
| 17 | |
| 18 | // DisableBMI2 will disable BMI2, for testing purposes. |
| 19 | // Call returned function to restore previous state. |
no outgoing calls
searching dependent graphs…