OSDN Git Service

compiler, runtime: Check make int64 args for overflow.
[pf3gnuchains/gcc-fork.git] / libgo / runtime / runtime1.goc
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 int32) (ret int32) {
9         ret = runtime_gomaxprocsfunc(n);
10 }
11
12 func NumCPU() (ret int32) {
13         ret = runtime_ncpu;
14 }