github.com/loov/hrtime@v1.0.3/tsc_other.go (about)

     1  // +build !amd64 gccgo
     2  
     3  package hrtime
     4  
     5  func initCPU() {
     6  	cpuid = func(op1, op2 uint32) (eax, ebx, ecx, edx uint32) {
     7  		return 0, 0, 0, 0
     8  	}
     9  }
    10  
    11  // RDTSCP returns 0 for unsupported configuration
    12  //
    13  // If a given OS doesn't support the instruction it returns 0.
    14  // Use TSCSupported to check.
    15  func RDTSCP() uint64 { return 0 }
    16  
    17  // RDTSC returns 0 for unsupported configuration
    18  //
    19  // If a given OS doesn't support the instruction it returns 0.
    20  // Use TSCSupported to check.
    21  func RDTSC() uint64 { return 0 }