mirror of
https://github.com/minio/minio.git
synced 2024-12-29 00:23:21 -05:00
19 lines
211 B
Go
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())
|
|
}
|