github.com/hongwozai/go-src-1.4.3@v0.0.0-20191127132709-dc3fce3dbccb/src/runtime/os_nacl_arm.c (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  #include "runtime.h"
     6  #include "defs_GOOS_GOARCH.h"
     7  #include "os_GOOS.h"
     8  #include "textflag.h"
     9  
    10  void
    11  runtime·checkgoarm(void)
    12  {
    13  	return; // NaCl/ARM only supports ARMv7
    14  }
    15  
    16  #pragma textflag NOSPLIT
    17  int64
    18  runtime·cputicks(void)
    19  {
    20  	// Currently cputicks() is used in blocking profiler and to seed runtime·fastrand1().
    21  	// runtime·nanotime() is a poor approximation of CPU ticks that is enough for the profiler.
    22  	// TODO: need more entropy to better seed fastrand1.
    23  	return runtime·nanotime();
    24  }