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

Side by Side Diff: source/libvpx/vpx_ports/arm_cpudetect.c

Issue 11974002: libvpx: Pull from upstream (Closed) Base URL: svn://chrome-svn/chrome/trunk/deps/third_party/libvpx/
Patch Set: Created 7 years, 11 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 | Annotate | Revision Log
« no previous file with comments | « source/libvpx/vpx_mem/vpx_mem_tracker.c ('k') | source/libvpx/vpx_ports/emmintrin_compat.h » ('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 (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 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 #endif /* HAVE_MEDIA */ 129 #endif /* HAVE_MEDIA */
130 #if HAVE_NEON 130 #if HAVE_NEON
131 if (features & ANDROID_CPU_ARM_FEATURE_NEON) 131 if (features & ANDROID_CPU_ARM_FEATURE_NEON)
132 flags |= HAS_NEON; 132 flags |= HAS_NEON;
133 #endif /* HAVE_NEON */ 133 #endif /* HAVE_NEON */
134 return flags & mask; 134 return flags & mask;
135 } 135 }
136 136
137 #elif defined(__linux__) /* end __ANDROID__ */ 137 #elif defined(__linux__) /* end __ANDROID__ */
138 138
139 #elif defined(__linux__) /* end __ANDROID__ */
140 #include <stdio.h> 139 #include <stdio.h>
141 140
142 int arm_cpu_caps(void) { 141 int arm_cpu_caps(void) {
143 FILE *fin; 142 FILE *fin;
144 int flags; 143 int flags;
145 int mask; 144 int mask;
146 if (!arm_cpu_env_flags(&flags)) { 145 if (!arm_cpu_env_flags(&flags)) {
147 return flags; 146 return flags;
148 } 147 }
149 mask = arm_cpu_env_mask(); 148 mask = arm_cpu_env_mask();
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 #endif /* HAVE_MEDIA */ 185 #endif /* HAVE_MEDIA */
187 } 186 }
188 fclose(fin); 187 fclose(fin);
189 } 188 }
190 return flags & mask; 189 return flags & mask;
191 } 190 }
192 #else /* end __linux__ */ 191 #else /* end __linux__ */
193 #error "--enable-runtime-cpu-detect selected, but no CPU detection method " \ 192 #error "--enable-runtime-cpu-detect selected, but no CPU detection method " \
194 "available for your platform. Reconfigure with --disable-runtime-cpu-detect." 193 "available for your platform. Reconfigure with --disable-runtime-cpu-detect."
195 #endif 194 #endif
OLDNEW
« no previous file with comments | « source/libvpx/vpx_mem/vpx_mem_tracker.c ('k') | source/libvpx/vpx_ports/emmintrin_compat.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698