github.com/insionng/yougam@v0.0.0-20170714101924-2bc18d833463/libraries/klauspost/cpuid/detect_ref.go (about)

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