detect_ref.go 448 B

1234567891011121314
  1. // Copyright (c) 2015 Klaus Post, released under MIT License. See LICENSE file.
  2. //+build !amd64,!386,!arm64 gccgo noasm appengine
  3. package cpuid
  4. func initCPU() {
  5. cpuid = func(uint32) (a, b, c, d uint32) { return 0, 0, 0, 0 }
  6. cpuidex = func(x, y uint32) (a, b, c, d uint32) { return 0, 0, 0, 0 }
  7. xgetbv = func(uint32) (a, b uint32) { return 0, 0 }
  8. rdtscpAsm = func() (a, b, c, d uint32) { return 0, 0, 0, 0 }
  9. }
  10. func addInfo(info *CPUInfo) {}