Index: Core.upp =================================================================== --- Core.upp (wersja 9896) +++ Core.upp (kopia robocza) @@ -23,6 +23,8 @@ library(!WIN32) z; +static_library(ANDROID) cpufeatures; + options(XGNU) -O0; options(XGNU) -ffunction-sections; Index: Cpu.cpp =================================================================== --- Cpu.cpp (wersja 9896) +++ Cpu.cpp (kopia robocza) @@ -102,16 +102,22 @@ #else #ifdef PLATFORM_LINUX -#include - -int CPU_Cores() -{ #ifdef PLATFORM_ANDROID - return 1; + #include + + int CPU_Cores() + { + return android_getCpuCount(); + } + #else + #include + + int CPU_Cores() + { return minmax(get_nprocs(), 1, 256); + } #endif -} #else int CPU_Cores() {