github.com/hikaru7719/go@v0.0.0-20181025140707-c8b2ac68906a/src/runtime/os_windows_arm.go (about)

     1  // Copyright 2018 The Go Authors. All rights reserved.
     2  // Use of this source code is governed by a BSD-style
     3  // license that can be found in the LICENSE file.
     4  
     5  package runtime
     6  
     7  //go:nosplit
     8  func cputicks() int64 {
     9  	return nanotime()
    10  }
    11  
    12  func checkgoarm() {
    13  	if goarm < 7 {
    14  		print("Need atomic synchronization instructions, coprocessor ",
    15  			"access instructions. Recompile using GOARM=7.\n")
    16  		exit(1)
    17  	}
    18  }