mirror of
https://github.com/minio/minio.git
synced 2025-01-03 19:13:22 -05:00
19 lines
217 B
Go
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())
|
||
|
}
|