minio/pkgs/crc32c/cpu/cpu.go
2014-12-04 01:12:10 -08:00

19 lines
211 B
Go

// +build 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())
}