OLD | NEW |
1 // Copyright 2011 Google Inc. All Rights Reserved. | 1 // Copyright 2011 Google Inc. All Rights Reserved. |
2 // | 2 // |
3 // Use of this source code is governed by a BSD-style license | 3 // Use of this source code is governed by a BSD-style license |
4 // that can be found in the COPYING file in the root of the source | 4 // that can be found in the COPYING file in the root of the source |
5 // tree. An additional intellectual property rights grant can be found | 5 // tree. An additional intellectual property rights grant can be found |
6 // in the file PATENTS. All contributing project authors may | 6 // in the file PATENTS. All contributing project authors may |
7 // be found in the AUTHORS file in the root of the source tree. | 7 // be found in the AUTHORS file in the root of the source tree. |
8 // ----------------------------------------------------------------------------- | 8 // ----------------------------------------------------------------------------- |
9 // | 9 // |
10 // CPU detection | 10 // CPU detection |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
111 } | 111 } |
112 VP8CPUInfo VP8GetCPUInfo = AndroidCPUInfo; | 112 VP8CPUInfo VP8GetCPUInfo = AndroidCPUInfo; |
113 #elif defined(WEBP_USE_NEON) | 113 #elif defined(WEBP_USE_NEON) |
114 // define a dummy function to enable turning off NEON at runtime by setting | 114 // define a dummy function to enable turning off NEON at runtime by setting |
115 // VP8DecGetCPUInfo = NULL | 115 // VP8DecGetCPUInfo = NULL |
116 static int armCPUInfo(CPUFeature feature) { | 116 static int armCPUInfo(CPUFeature feature) { |
117 (void)feature; | 117 (void)feature; |
118 return 1; | 118 return 1; |
119 } | 119 } |
120 VP8CPUInfo VP8GetCPUInfo = armCPUInfo; | 120 VP8CPUInfo VP8GetCPUInfo = armCPUInfo; |
121 #elif defined(__mips__) | 121 #elif defined(WEBP_USE_MIPS32) |
122 static int mipsCPUInfo(CPUFeature feature) { | 122 static int mipsCPUInfo(CPUFeature feature) { |
123 (void)feature; | 123 (void)feature; |
124 return 1; | 124 return 1; |
125 } | 125 } |
126 VP8CPUInfo VP8GetCPUInfo = mipsCPUInfo; | 126 VP8CPUInfo VP8GetCPUInfo = mipsCPUInfo; |
127 #else | 127 #else |
128 VP8CPUInfo VP8GetCPUInfo = NULL; | 128 VP8CPUInfo VP8GetCPUInfo = NULL; |
129 #endif | 129 #endif |
130 | 130 |
OLD | NEW |