You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
217 B
19 lines
217 B
10 years ago
|
// +build linux,amd64
|
||
|
|
||
|
package cpu
|
||
|
|
||
|
// #include "cpu.h"
|
||
|
import "C"
|
||
|
|
||
|
func HasSSE41() int {
|
||
|
return int(C.has_sse41())
|
||
|
}
|
||
|
|
||
|
func HasAVX() int {
|
||
|
return int(C.has_avx())
|
||
|
}
|
||
|
|
||
|
func HasAVX2() int {
|
||
|
return int(C.has_avx2())
|
||
|
}
|