diff options
author | fbarchard@google.com <fbarchard@google.com@16f28f9a-4ce2-e073-06de-1de4eb20be90> | 2013-04-18 20:27:45 +0000 |
---|---|---|
committer | fbarchard@google.com <fbarchard@google.com@16f28f9a-4ce2-e073-06de-1de4eb20be90> | 2013-04-18 20:27:45 +0000 |
commit | 955fc269882fc5862c49d0bbdc0db965169d6e6c (patch) | |
tree | 265d21daec840dfee63568acd118a9e47a8fc996 /util/cpuid.c | |
parent | fc264019de6bf46f284907f966f7947cc51887e5 (diff) | |
download | libyuv-955fc269882fc5862c49d0bbdc0db965169d6e6c.tar.gz |
Cleaner cpuid util
BUG=none
TEST=none
Review URL: https://webrtc-codereview.appspot.com/1330004
git-svn-id: http://libyuv.googlecode.com/svn/trunk@668 16f28f9a-4ce2-e073-06de-1de4eb20be90
Diffstat (limited to 'util/cpuid.c')
-rw-r--r-- | util/cpuid.c | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/util/cpuid.c b/util/cpuid.c index 751405c5..0a122c12 100644 --- a/util/cpuid.c +++ b/util/cpuid.c @@ -68,19 +68,26 @@ int main(int argc, const char* argv[]) { } #endif printf("Cpu Flags %x\n", cpu_flags); +#if defined(__arm__) printf("Has ARM %x\n", has_arm); + printf("Has NEON %x\n", has_neon); +#elif defined(__i386__) || defined(__x86_64__) || \ + defined(_M_IX86) || defined(_M_X64) + printf("Has X86 %x\n", has_x86); + printf("Has SSE2 %x\n", has_sse2); + printf("Has SSSE3 %x\n", has_ssse3); + printf("Has SSE4.1 %x\n", has_sse41); + printf("Has SSE4.2 %x\n", has_sse42); printf("Has AVX %x\n", has_avx); printf("Has AVX2 %x\n", has_avx2); printf("Has ERMS %x\n", has_erms); +#else + printf("Has ARM %x\n", has_arm); + printf("Has X86 %x\n", has_x86); printf("Has MIPS %x\n", has_mips); printf("Has MIPS DSP %x\n", has_mips_dsp); printf("Has MIPS DSPR2 %x\n", has_mips_dspr2); - printf("Has NEON %x\n", has_neon); - printf("Has SSE2 %x\n", has_sse2); - printf("Has SSE4.1 %x\n", has_sse41); - printf("Has SSE4.2 %x\n", has_sse42); - printf("Has SSSE3 %x\n", has_ssse3); - printf("Has X86 %x\n", has_x86); +#endif return 0; } |