Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(781)

Side by Side Diff: util/cpuid.c

Issue 1677633002: rename MIPS_DSPR2 to DSPR2 for consistency (Closed) Base URL: https://chromium.googlesource.com/libyuv/libyuv@master
Patch Set: git cl try Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « unit_test/cpu_test.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_dspr2 = TestCpuFlag(kCpuHasMIPS_DSPR2); 69 int has_dspr2 = TestCpuFlag(kCpuHasDSPR2);
70 printf("Has MIPS DSPR2 %x\n", has_mips_dspr2); 70 printf("Has DSPR2 %x\n", has_dspr2);
71 } 71 }
72 if (has_x86) { 72 if (has_x86) {
73 int has_sse2 = TestCpuFlag(kCpuHasSSE2); 73 int has_sse2 = TestCpuFlag(kCpuHasSSE2);
74 int has_ssse3 = TestCpuFlag(kCpuHasSSSE3); 74 int has_ssse3 = TestCpuFlag(kCpuHasSSSE3);
75 int has_sse41 = TestCpuFlag(kCpuHasSSE41); 75 int has_sse41 = TestCpuFlag(kCpuHasSSE41);
76 int has_sse42 = TestCpuFlag(kCpuHasSSE42); 76 int has_sse42 = TestCpuFlag(kCpuHasSSE42);
77 int has_avx = TestCpuFlag(kCpuHasAVX); 77 int has_avx = TestCpuFlag(kCpuHasAVX);
78 int has_avx2 = TestCpuFlag(kCpuHasAVX2); 78 int has_avx2 = TestCpuFlag(kCpuHasAVX2);
79 int has_avx3 = TestCpuFlag(kCpuHasAVX3); 79 int has_avx3 = TestCpuFlag(kCpuHasAVX3);
80 int has_erms = TestCpuFlag(kCpuHasERMS); 80 int has_erms = TestCpuFlag(kCpuHasERMS);
81 int has_fma3 = TestCpuFlag(kCpuHasFMA3); 81 int has_fma3 = TestCpuFlag(kCpuHasFMA3);
82 printf("Has SSE2 %x\n", has_sse2); 82 printf("Has SSE2 %x\n", has_sse2);
83 printf("Has SSSE3 %x\n", has_ssse3); 83 printf("Has SSSE3 %x\n", has_ssse3);
84 printf("Has SSE4.1 %x\n", has_sse41); 84 printf("Has SSE4.1 %x\n", has_sse41);
85 printf("Has SSE4.2 %x\n", has_sse42); 85 printf("Has SSE4.2 %x\n", has_sse42);
86 printf("Has AVX %x\n", has_avx); 86 printf("Has AVX %x\n", has_avx);
87 printf("Has AVX2 %x\n", has_avx2); 87 printf("Has AVX2 %x\n", has_avx2);
88 printf("Has AVX3 %x\n", has_avx3); 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
OLDNEW
« no previous file with comments | « unit_test/cpu_test.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698