| 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 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |