Refactor performance.c - should use performance_linux.c codepaths

now if __linux__ is defined
This commit is contained in:
twinaphex 2015-09-15 22:34:48 +02:00
parent 7bd5ec0ffe
commit 3914bb7611

View File

@ -363,8 +363,6 @@ unsigned rarch_get_cpu_cores(void)
SYSTEM_INFO sysinfo;
GetSystemInfo(&sysinfo);
return sysinfo.dwNumberOfProcessors;
#elif defined(ANDROID)
return linux_get_cpu_count();
#elif defined(GEKKO)
return 1;
#elif defined(PSP)
@ -397,6 +395,8 @@ unsigned rarch_get_cpu_cores(void)
num_cpu = 1;
}
return num_cpu;
#elif defined(__linux__)
return linux_get_cpu_count();
#elif defined(_XBOX360)
return 3;
#else
@ -504,7 +504,7 @@ uint64_t rarch_get_cpu_features(void)
cpu |= RETRO_SIMD_MMXEXT;
}
#elif defined(ANDROID) && defined(ANDROID_ARM)
#elif defined(__linux__)
cpu_flags = linux_get_cpu_features();
#ifdef __ARM_NEON__