1
0
mirror of https://github.com/fumiama/unibase2n.git synced 2026-06-09 11:10:26 +08:00
Files
unibase2n/cpuid.go
2022-10-03 17:14:10 +08:00

13 lines
231 B
Go

//go:build amd64
// +build amd64
package unibase2n
func cpuid(op uint32) (eax, ebx, ecx, edx uint32)
// True when SSE2 instructions are available.
var canusesse2 = func() bool {
_, _, c, _ := cpuid(1)
return c&(1<<26) > 0
}()