1
0
mirror of https://github.com/fumiama/go-base16384.git synced 2026-06-23 04:30:27 +08:00

fix generic panic, add movbe check

This commit is contained in:
源文雨
2022-09-17 20:38:32 +08:00
parent ceb3054caa
commit b75d6ab6d8
6 changed files with 90 additions and 43 deletions

15
cpuid_amd64.s Normal file
View File

@@ -0,0 +1,15 @@
//go:build amd64
// +build amd64
// Copyright (c) 2015 Klaus Post, released under MIT License. See LICENSE file.
// func cpuid(op uint32) (eax, ebx, ecx, edx uint32)
TEXT ·cpuid(SB), 7, $0
XORQ CX, CX
MOVL op+0(FP), AX
CPUID
MOVL AX, eax+8(FP)
MOVL BX, ebx+12(FP)
MOVL CX, ecx+16(FP)
MOVL DX, edx+20(FP)
RET