Skip to content

Commit

Permalink
Fix derp.
Browse files Browse the repository at this point in the history
  • Loading branch information
Themaister committed Nov 6, 2012
1 parent aa6d291 commit cb6ae77
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions performance.c
Expand Up @@ -157,21 +157,21 @@ void rarch_get_cpu_features(struct rarch_cpu_features *cpu)
if ((flags[2] & avx_flags) == avx_flags)
cpu->simd |= RARCH_SIMD_AVX;

RARCH_LOG("[CPUID]: SSE: %u\n", cpu->simd & RARCH_SIMD_SSE);
RARCH_LOG("[CPUID]: SSE2: %u\n", cpu->simd & RARCH_SIMD_SSE2);
RARCH_LOG("[CPUID]: AVX: %u\n", cpu->simd & RARCH_SIMD_AVX);
RARCH_LOG("[CPUID]: SSE: %u\n", !!(cpu->simd & RARCH_SIMD_SSE));
RARCH_LOG("[CPUID]: SSE2: %u\n", !!(cpu->simd & RARCH_SIMD_SSE2));
RARCH_LOG("[CPUID]: AVX: %u\n", !!(cpu->simd & RARCH_SIMD_AVX));
#elif defined(ANDROID) && defined(ANDROID_ARM)
uint64_t cpu_flags = android_getCpuFeatures();

if (cpu_flags & ANDROID_CPU_ARM_FEATURE_NEON)
cpu->simd |= RARCH_SIMD_NEON;

RARCH_LOG("[CPUID]: NEON: %u\n", cpu->simd & RARCH_SIMD_NEON);
RARCH_LOG("[CPUID]: NEON: %u\n", !!(cpu->simd & RARCH_SIMD_NEON));
#elif defined(__CELLOS_LV2__)
cpu->simd |= RARCH_SIMD_VMX;
RARCH_LOG("[CPUID]: VMX: %u\n", cpu->simd & RARCH_SIMD_VMX);
RARCH_LOG("[CPUID]: VMX: %u\n", !!(cpu->simd & RARCH_SIMD_VMX));
#elif defined(XBOX360)
cpu->simd |= RARCH_SIMD_VMX128;
RARCH_LOG("[CPUID]: VMX128: %u\n", cpu->simd & RARCH_SIMD_VMX128);
RARCH_LOG("[CPUID]: VMX128: %u\n", !!(cpu->simd & RARCH_SIMD_VMX128));
#endif
}

0 comments on commit cb6ae77

Please sign in to comment.