mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-10-06 00:30:10 -06:00
Core: ARM fixes
git-svn-id: svn://ultimatepp.org/upp/trunk@7985 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
c146ac18af
commit
3fdb544517
1 changed files with 13 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue