| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2012 The LibYuv Project Authors. All rights reserved. | 2 * Copyright 2012 The LibYuv Project Authors. All rights reserved. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
| 5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
| 6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
| 7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
| 8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
| 9 */ | 9 */ |
| 10 | 10 |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 #endif | 59 #endif |
| 60 printf("Cpu Flags %x\n", cpu_flags); | 60 printf("Cpu Flags %x\n", cpu_flags); |
| 61 printf("Has ARM %x\n", has_arm); | 61 printf("Has ARM %x\n", has_arm); |
| 62 printf("Has MIPS %x\n", has_mips); | 62 printf("Has MIPS %x\n", has_mips); |
| 63 printf("Has X86 %x\n", has_x86); | 63 printf("Has X86 %x\n", has_x86); |
| 64 if (has_arm) { | 64 if (has_arm) { |
| 65 int has_neon = TestCpuFlag(kCpuHasNEON); | 65 int has_neon = TestCpuFlag(kCpuHasNEON); |
| 66 printf("Has NEON %x\n", has_neon); | 66 printf("Has NEON %x\n", has_neon); |
| 67 } | 67 } |
| 68 if (has_mips) { | 68 if (has_mips) { |
| 69 int has_mips_dsp = TestCpuFlag(kCpuHasMIPS_DSP); | |
| 70 int has_mips_dspr2 = TestCpuFlag(kCpuHasMIPS_DSPR2); | 69 int has_mips_dspr2 = TestCpuFlag(kCpuHasMIPS_DSPR2); |
| 71 printf("Has MIPS DSP %x\n", has_mips_dsp); | |
| 72 printf("Has MIPS DSPR2 %x\n", has_mips_dspr2); | 70 printf("Has MIPS DSPR2 %x\n", has_mips_dspr2); |
| 73 } | 71 } |
| 74 if (has_x86) { | 72 if (has_x86) { |
| 75 int has_sse2 = TestCpuFlag(kCpuHasSSE2); | 73 int has_sse2 = TestCpuFlag(kCpuHasSSE2); |
| 76 int has_ssse3 = TestCpuFlag(kCpuHasSSSE3); | 74 int has_ssse3 = TestCpuFlag(kCpuHasSSSE3); |
| 77 int has_sse41 = TestCpuFlag(kCpuHasSSE41); | 75 int has_sse41 = TestCpuFlag(kCpuHasSSE41); |
| 78 int has_sse42 = TestCpuFlag(kCpuHasSSE42); | 76 int has_sse42 = TestCpuFlag(kCpuHasSSE42); |
| 79 int has_avx = TestCpuFlag(kCpuHasAVX); | 77 int has_avx = TestCpuFlag(kCpuHasAVX); |
| 80 int has_avx2 = TestCpuFlag(kCpuHasAVX2); | 78 int has_avx2 = TestCpuFlag(kCpuHasAVX2); |
| 79 int has_avx3 = TestCpuFlag(kCpuHasAVX3); |
| 81 int has_erms = TestCpuFlag(kCpuHasERMS); | 80 int has_erms = TestCpuFlag(kCpuHasERMS); |
| 82 int has_fma3 = TestCpuFlag(kCpuHasFMA3); | 81 int has_fma3 = TestCpuFlag(kCpuHasFMA3); |
| 83 printf("Has SSE2 %x\n", has_sse2); | 82 printf("Has SSE2 %x\n", has_sse2); |
| 84 printf("Has SSSE3 %x\n", has_ssse3); | 83 printf("Has SSSE3 %x\n", has_ssse3); |
| 85 printf("Has SSE4.1 %x\n", has_sse41); | 84 printf("Has SSE4.1 %x\n", has_sse41); |
| 86 printf("Has SSE4.2 %x\n", has_sse42); | 85 printf("Has SSE4.2 %x\n", has_sse42); |
| 87 printf("Has AVX %x\n", has_avx); | 86 printf("Has AVX %x\n", has_avx); |
| 88 printf("Has AVX2 %x\n", has_avx2); | 87 printf("Has AVX2 %x\n", has_avx2); |
| 88 printf("Has AVX3 %x\n", has_avx3); |
| 89 printf("Has ERMS %x\n", has_erms); | 89 printf("Has ERMS %x\n", has_erms); |
| 90 printf("Has FMA3 %x\n", has_fma3); | 90 printf("Has FMA3 %x\n", has_fma3); |
| 91 } | 91 } |
| 92 return 0; | 92 return 0; |
| 93 } | 93 } |
| 94 | 94 |
| OLD | NEW |