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 30 matching lines...) Expand all Loading... |
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 Loading... |
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 |
OLD | NEW |