github.com/likebike/go--@v0.0.0-20190911215757-0bd925d16e96/go/src/runtime/os_nacl_arm.go (about) 1 // Copyright 2014 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 var hardDiv bool // TODO: set if a hardware divider is available 8 9 func checkgoarm() { 10 // TODO(minux): FP checks like in os_linux_arm.go. 11 12 // NaCl/ARM only supports ARMv7 13 if goarm != 7 { 14 print("runtime: NaCl requires ARMv7. Recompile using GOARM=7.\n") 15 exit(1) 16 } 17 } 18 19 //go:nosplit 20 func cputicks() int64 { 21 // Currently cputicks() is used in blocking profiler and to seed runtime·fastrand(). 22 // runtime·nanotime() is a poor approximation of CPU ticks that is enough for the profiler. 23 // TODO: need more entropy to better seed fastrand. 24 return nanotime() 25 }