afe5a2a9b7
Co-authored-by: Nicolas De Loof <nicolas.deloof@gmail.com> Co-authored-by: Sebastiaan van Stijn <github@gone.nl> Signed-off-by: Laura Brehm <laurabrehm@hey.com>
11 lines
209 B
Go
11 lines
209 B
Go
//go:build amd64 && !appengine && !noasm && gc
|
|
// +build amd64,!appengine,!noasm,gc
|
|
|
|
package cpuinfo
|
|
|
|
// go:noescape
|
|
func x86extensions() (bmi1, bmi2 bool)
|
|
|
|
func init() {
|
|
hasBMI1, hasBMI2 = x86extensions()
|
|
}
|