本站源代码
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
445B

  1. // Copyright (c) 2015 Klaus Post, released under MIT License. See LICENSE file.
  2. // +build 386,!gccgo amd64,!gccgo
  3. package cpuid
  4. func asmCpuid(op uint32) (eax, ebx, ecx, edx uint32)
  5. func asmCpuidex(op, op2 uint32) (eax, ebx, ecx, edx uint32)
  6. func asmXgetbv(index uint32) (eax, edx uint32)
  7. func asmRdtscpAsm() (eax, ebx, ecx, edx uint32)
  8. func initCPU() {
  9. cpuid = asmCpuid
  10. cpuidex = asmCpuidex
  11. xgetbv = asmXgetbv
  12. rdtscpAsm = asmRdtscpAsm
  13. }
上海开阖软件有限公司 沪ICP备12045867号-1