1
0
mirror of https://github.com/fumiama/unibase2n.git synced 2026-06-27 15:30:31 +08:00

add asm dec128blk1

This commit is contained in:
源文雨
2022-10-03 17:14:10 +08:00
parent f084ae5128
commit d78949ac03
7 changed files with 136 additions and 35 deletions

12
cpuid.go Normal file
View File

@@ -0,0 +1,12 @@
//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
}()