Bug 1131960 - Check for NEON capability before using NEON code. r=derf

CLOSED TREE
This commit is contained in:
Gian-Carlo Pascutto 2015-02-13 05:13:00 -05:00
parent 82857aa6f5
commit cc4a1f03e4
2 changed files with 10 additions and 2 deletions

View File

@ -1404,7 +1404,11 @@ int WebRtcAec_CreateAec(AecCore** aecInst) {
WebRtcAec_InitAec_mips();
#endif
#if defined(WEBRTC_DETECT_ARM_NEON) || defined(WEBRTC_ARCH_ARM_NEON)
#if defined(WEBRTC_DETECT_ARM_NEON)
if ((WebRtc_GetCPUFeaturesARM() & kCPUFeatureNEON) != 0) {
WebRtcAec_InitAec_neon();
}
#elif defined(WEBRTC_ARCH_ARM_NEON)
WebRtcAec_InitAec_neon();
#endif

View File

@ -579,7 +579,11 @@ void aec_rdft_init(void) {
#if defined(MIPS_FPU_LE)
aec_rdft_init_mips();
#endif
#if defined(WEBRTC_DETECT_ARM_NEON) || defined(WEBRTC_ARCH_ARM_NEON)
#if defined(WEBRTC_DETECT_ARM_NEON)
if ((WebRtc_GetCPUFeaturesARM() & kCPUFeatureNEON) != 0) {
aec_rdft_init_neon();
}
#elif defined(WEBRTC_ARCH_ARM_NEON)
aec_rdft_init_neon();
#endif
}