| 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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 } | 75 } |
| 76 } | 76 } |
| 77 #else | 77 #else |
| 78 /* other platforms */ | 78 /* other platforms */ |
| 79 #endif | 79 #endif |
| 80 | 80 |
| 81 return core_count > 0 ? core_count : 1; | 81 return core_count > 0 ? core_count : 1; |
| 82 } | 82 } |
| 83 #endif | 83 #endif |
| 84 | 84 |
| 85 void vp8_clear_system_state_c() {}; |
| 85 | 86 |
| 86 void vp8_machine_specific_config(VP8_COMMON *ctx) | 87 void vp8_machine_specific_config(VP8_COMMON *ctx) |
| 87 { | 88 { |
| 88 #if CONFIG_MULTITHREAD | 89 #if CONFIG_MULTITHREAD |
| 89 ctx->processor_core_count = get_cpu_count(); | 90 ctx->processor_core_count = get_cpu_count(); |
| 90 #endif /* CONFIG_MULTITHREAD */ | 91 #endif /* CONFIG_MULTITHREAD */ |
| 91 | 92 |
| 92 #if ARCH_ARM | 93 #if ARCH_ARM |
| 93 ctx->cpu_caps = arm_cpu_caps(); | 94 ctx->cpu_caps = arm_cpu_caps(); |
| 94 #elif ARCH_X86 || ARCH_X86_64 | 95 #elif ARCH_X86 || ARCH_X86_64 |
| 95 ctx->cpu_caps = x86_simd_caps(); | 96 ctx->cpu_caps = x86_simd_caps(); |
| 96 #endif | 97 #endif |
| 97 } | 98 } |
| OLD | NEW |