github.com/varialus/godfly@v0.0.0-20130904042352-1934f9f095ab/src/pkg/runtime/runtime1.goc (about) 1 // Copyright 2010 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 #include "runtime.h" 7 8 func GOMAXPROCS(n int) (ret int) { 9 ret = runtime·gomaxprocsfunc(n); 10 } 11 12 func NumCPU() (ret int) { 13 ret = runtime·ncpu; 14 }