Retro68/gcc/libgo/runtime/runtime1.goc

15 lines
320 B
Plaintext
Raw Normal View History

2012-03-27 23:13:14 +00:00
// Copyright 2010 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package runtime
#include "runtime.h"
2014-09-21 17:33:12 +00:00
func GOMAXPROCS(n int) (ret int) {
2012-03-27 23:13:14 +00:00
ret = runtime_gomaxprocsfunc(n);
}
2014-09-21 17:33:12 +00:00
func NumCPU() (ret int) {
2012-03-27 23:13:14 +00:00
ret = runtime_ncpu;
}