Mercurial > hg > CbC > CbC_gcc
annotate libgo/runtime/getncpu-aix.c @ 143:76e1cf5455ef
add cbc_gc test
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Sun, 23 Dec 2018 19:24:05 +0900 |
parents | 04ced10e8804 |
children |
rev | line source |
---|---|
111 | 1 // Copyright 2012 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 <sys/types.h> | |
6 #include <sys/systemcfg.h> | |
7 | |
8 #include "runtime.h" | |
9 #include "defs.h" | |
10 | |
11 int32_t | |
12 getproccount(void) | |
13 { | |
14 return _system_configuration.ncpus; | |
15 } |