Fix compile error for non Intel platforms

Fixing compile error for non Intel platforms
when using C implemented fft functions
(for example, optimizations are not implemented for mips64el
and C functions must be used)

Adding bypass of presubmit to avoid code style and header
errors caused by the fact that files with legacy code are
being renamed.

NOPRESUBMIT=true
BUG=webrtc:6595
TEST=gn gen out-gn/mips64-android-webrtc --args="is_debug=false target_os=\"android\" target_cpu=\"mips64el\""
     ninja -C out-gn/mips64-android-webrtc audio_processing

Review-Url: https://codereview.webrtc.org/2442773002
Cr-Commit-Position: refs/heads/master@{#14808}
This commit is contained in:
Gordana.Cmiljanovic 2016-10-27 23:44:09 -07:00 committed by Commit bot
parent 9922016ee4
commit 11f72b1945

View File

@ -348,12 +348,14 @@ void OouraFft::cft1st_128(float* a) const {
cft1st_128_mips(a); cft1st_128_mips(a);
#elif defined(WEBRTC_HAS_NEON) #elif defined(WEBRTC_HAS_NEON)
cft1st_128_neon(a); cft1st_128_neon(a);
#else #elif defined(WEBRTC_ARCH_X86_FAMILY)
if (use_sse2_) { if (use_sse2_) {
cft1st_128_SSE2(a); cft1st_128_SSE2(a);
} else { } else {
cft1st_128_C(a); cft1st_128_C(a);
} }
#else
cft1st_128_C(a);
#endif #endif
} }
void OouraFft::cftmdl_128(float* a) const { void OouraFft::cftmdl_128(float* a) const {
@ -361,12 +363,14 @@ void OouraFft::cftmdl_128(float* a) const {
cftmdl_128_mips(a); cftmdl_128_mips(a);
#elif defined(WEBRTC_HAS_NEON) #elif defined(WEBRTC_HAS_NEON)
cftmdl_128_neon(a); cftmdl_128_neon(a);
#else #elif defined(WEBRTC_ARCH_X86_FAMILY)
if (use_sse2_) { if (use_sse2_) {
cftmdl_128_SSE2(a); cftmdl_128_SSE2(a);
} else { } else {
cftmdl_128_C(a); cftmdl_128_C(a);
} }
#else
cftmdl_128_C(a);
#endif #endif
} }
void OouraFft::rftfsub_128(float* a) const { void OouraFft::rftfsub_128(float* a) const {
@ -374,12 +378,14 @@ void OouraFft::rftfsub_128(float* a) const {
rftfsub_128_mips(a); rftfsub_128_mips(a);
#elif defined(WEBRTC_HAS_NEON) #elif defined(WEBRTC_HAS_NEON)
rftfsub_128_neon(a); rftfsub_128_neon(a);
#else #elif defined(WEBRTC_ARCH_X86_FAMILY)
if (use_sse2_) { if (use_sse2_) {
rftfsub_128_SSE2(a); rftfsub_128_SSE2(a);
} else { } else {
rftfsub_128_C(a); rftfsub_128_C(a);
} }
#else
rftfsub_128_C(a);
#endif #endif
} }
@ -388,12 +394,14 @@ void OouraFft::rftbsub_128(float* a) const {
rftbsub_128_mips(a); rftbsub_128_mips(a);
#elif defined(WEBRTC_HAS_NEON) #elif defined(WEBRTC_HAS_NEON)
rftbsub_128_neon(a); rftbsub_128_neon(a);
#else #elif defined(WEBRTC_ARCH_X86_FAMILY)
if (use_sse2_) { if (use_sse2_) {
rftbsub_128_SSE2(a); rftbsub_128_SSE2(a);
} else { } else {
rftbsub_128_C(a); rftbsub_128_C(a);
} }
#else
rftbsub_128_C(a);
#endif #endif
} }