mirror of
https://github.com/pgsty/minio.git
synced 2026-09-07 02:56:17 +03: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())
|
|
}
|