OLD | NEW |
---|---|
1 /* | 1 /* |
2 * Copyright (c) 2010 The WebM project authors. All Rights Reserved. | 2 * Copyright (c) 2010 The WebM 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 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
94 } | 94 } |
95 } | 95 } |
96 #endif | 96 #endif |
97 #endif | 97 #endif |
98 #endif | 98 #endif |
99 return flags & mask; | 99 return flags & mask; |
100 } | 100 } |
101 | 101 |
102 #elif defined(__linux__) | 102 #elif defined(__linux__) |
103 #if defined(__ANDROID__) | 103 #if defined(__ANDROID__) |
104 #include <cpu-features.h> | 104 #include <machine/cpu-features.h> |
Alpha Left Google
2012/11/19 18:46:33
It's better that we upstream this change to libvpx
wjia(left Chromium)
2012/11/19 19:41:48
Done with CHROMIUM_BUILD flag. I will ask Johann t
| |
105 | 105 |
106 int arm_cpu_caps(void) | 106 int arm_cpu_caps(void) |
107 { | 107 { |
108 int flags; | 108 int flags; |
109 int mask; | 109 int mask; |
110 uint64_t features; | 110 uint64_t features; |
111 if (!arm_cpu_env_flags(&flags)) | 111 if (!arm_cpu_env_flags(&flags)) |
112 { | 112 { |
113 return flags; | 113 return flags; |
114 } | 114 } |
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
209 #if defined(HAVE_NEON) | 209 #if defined(HAVE_NEON) |
210 flags |= HAS_NEON; | 210 flags |= HAS_NEON; |
211 #endif | 211 #endif |
212 return flags & mask; | 212 return flags & mask; |
213 } | 213 } |
214 | 214 |
215 #else | 215 #else |
216 #error "--enable-runtime-cpu-detect selected, but no CPU detection method " \ | 216 #error "--enable-runtime-cpu-detect selected, but no CPU detection method " \ |
217 "available for your platform. Reconfigure without --enable-runtime-cpu-detect." | 217 "available for your platform. Reconfigure without --enable-runtime-cpu-detect." |
218 #endif | 218 #endif |
OLD | NEW |