OLD | NEW |
1 | |
2 /* | 1 /* |
3 * Copyright 2012 The Android Open Source Project | 2 * Copyright 2012 The Android Open Source Project |
4 * | 3 * |
5 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
6 * found in the LICENSE file. | 5 * found in the LICENSE file. |
7 */ | 6 */ |
8 | 7 |
9 #include "SkUtilsArm.h" | 8 #include "SkUtilsArm.h" |
10 | 9 |
11 #if SK_ARM_NEON_IS_DYNAMIC | 10 #if SK_ARM_NEON_IS_DYNAMIC |
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
137 void sk_cpu_arm_probe_features(void) { | 136 void sk_cpu_arm_probe_features(void) { |
138 sHasArmNeon = sk_cpu_arm_check_neon(); | 137 sHasArmNeon = sk_cpu_arm_check_neon(); |
139 } | 138 } |
140 | 139 |
141 bool sk_cpu_arm_has_neon(void) { | 140 bool sk_cpu_arm_has_neon(void) { |
142 pthread_once(&sOnce, sk_cpu_arm_probe_features); | 141 pthread_once(&sOnce, sk_cpu_arm_probe_features); |
143 return sHasArmNeon; | 142 return sHasArmNeon; |
144 } | 143 } |
145 | 144 |
146 #endif // SK_ARM_NEON_IS_DYNAMIC | 145 #endif // SK_ARM_NEON_IS_DYNAMIC |
OLD | NEW |