From 3914bb7611db9daa28a6725d24ba22a54887ca4c Mon Sep 17 00:00:00 2001 From: twinaphex Date: Tue, 15 Sep 2015 22:34:48 +0200 Subject: [PATCH] Refactor performance.c - should use performance_linux.c codepaths now if __linux__ is defined --- performance.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/performance.c b/performance.c index 337f5354a0..ee55b11619 100644 --- a/performance.c +++ b/performance.c @@ -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__