Core: ARM fixes

git-svn-id: svn://ultimatepp.org/upp/trunk@7985 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2014-12-18 19:46:10 +00:00
commit 3fdb544517

View file

@ -100,10 +100,21 @@ int CPU_Cores()
return n;
}
#else
inline int CPU_Cores()
#ifdef PLATFORM_LINUX
#include <sys/sysinfo.h>
int CPU_Cores()
{
return 1;
return minmax(get_nprocs(), 1, 256);
}
#else
int CPU_Cores()
{
return 1;
}
#endif
#endif
#ifdef PLATFORM_WIN32