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

Side by Side Diff: unit_test/cpu_test.cc

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 | « source/scale_mips.cc ('k') | util/cpuid.c » ('j') | 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 30 matching lines...) Expand all
41 int has_avx2 = TestCpuFlag(kCpuHasAVX2); 41 int has_avx2 = TestCpuFlag(kCpuHasAVX2);
42 printf("Has AVX2 %x\n", has_avx2); 42 printf("Has AVX2 %x\n", has_avx2);
43 int has_erms = TestCpuFlag(kCpuHasERMS); 43 int has_erms = TestCpuFlag(kCpuHasERMS);
44 printf("Has ERMS %x\n", has_erms); 44 printf("Has ERMS %x\n", has_erms);
45 int has_fma3 = TestCpuFlag(kCpuHasFMA3); 45 int has_fma3 = TestCpuFlag(kCpuHasFMA3);
46 printf("Has FMA3 %x\n", has_fma3); 46 printf("Has FMA3 %x\n", has_fma3);
47 int has_avx3 = TestCpuFlag(kCpuHasAVX3); 47 int has_avx3 = TestCpuFlag(kCpuHasAVX3);
48 printf("Has AVX3 %x\n", has_avx3); 48 printf("Has AVX3 %x\n", has_avx3);
49 int has_mips = TestCpuFlag(kCpuHasMIPS); 49 int has_mips = TestCpuFlag(kCpuHasMIPS);
50 printf("Has MIPS %x\n", has_mips); 50 printf("Has MIPS %x\n", has_mips);
51 int has_mips_dspr2 = TestCpuFlag(kCpuHasMIPS_DSPR2); 51 int has_dspr2 = TestCpuFlag(kCpuHasDSPR2);
52 printf("Has MIPS DSPR2 %x\n", has_mips_dspr2); 52 printf("Has DSPR2 %x\n", has_dspr2);
53 } 53 }
54 54
55 TEST_F(LibYUVBaseTest, TestCpuCompilerEnabled) { 55 TEST_F(LibYUVBaseTest, TestCpuCompilerEnabled) {
56 #if defined(__aarch64__) 56 #if defined(__aarch64__)
57 printf("Arm64 build\n"); 57 printf("Arm64 build\n");
58 #endif 58 #endif
59 #if defined(__aarch64__) || defined(__ARM_NEON__) || defined(LIBYUV_NEON) 59 #if defined(__aarch64__) || defined(__ARM_NEON__) || defined(LIBYUV_NEON)
60 printf("Neon build enabled\n"); 60 printf("Neon build enabled\n");
61 #endif 61 #endif
62 #if defined(__x86_64__) || defined(_M_X64) 62 #if defined(__x86_64__) || defined(_M_X64)
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 EXPECT_EQ(kCpuHasNEON, ArmCpuCaps("../../unit_test/testdata/juno.txt")); 138 EXPECT_EQ(kCpuHasNEON, ArmCpuCaps("../../unit_test/testdata/juno.txt"));
139 } else { 139 } else {
140 printf("WARNING: unable to load \"../../unit_test/testdata/arm_v7.txt\"\n"); 140 printf("WARNING: unable to load \"../../unit_test/testdata/arm_v7.txt\"\n");
141 } 141 }
142 #if defined(__linux__) && defined(__ARM_NEON__) 142 #if defined(__linux__) && defined(__ARM_NEON__)
143 EXPECT_EQ(kCpuHasNEON, ArmCpuCaps("/proc/cpuinfo")); 143 EXPECT_EQ(kCpuHasNEON, ArmCpuCaps("/proc/cpuinfo"));
144 #endif 144 #endif
145 } 145 }
146 146
147 } // namespace libyuv 147 } // namespace libyuv
OLDNEW
« no previous file with comments | « source/scale_mips.cc ('k') | util/cpuid.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698