detect_ref.go 449 B

1234567891011121314151617181920212223
  1. // Copyright (c) 2015 Klaus Post, released under MIT License. See LICENSE file.
  2. // +build !amd64,!386 gccgo
  3. package cpuid
  4. func initCPU() {
  5. cpuid = func(op uint32) (eax, ebx, ecx, edx uint32) {
  6. return 0, 0, 0, 0
  7. }
  8. cpuidex = func(op, op2 uint32) (eax, ebx, ecx, edx uint32) {
  9. return 0, 0, 0, 0
  10. }
  11. xgetbv = func(index uint32) (eax, edx uint32) {
  12. return 0, 0
  13. }
  14. rdtscpAsm = func() (eax, ebx, ecx, edx uint32) {
  15. return 0, 0, 0, 0
  16. }
  17. }