cpuid_detect_intel.go 445 B

1234567891011121314151617
  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. }