minio/pkgs/crc32c/cpu/cpu.go
2014-12-03 01:20:31 -08:00

19 lines
217 B
Go

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