commit | 3ee4af45094c448f0b410fae2c9472ebeba76625 | [log] [tgz] |
---|---|---|
author | Alessio Bazzica <alessiob@webrtc.org> | Mon Dec 07 12:06:57 2020 |
committer | Commit Bot <commit-bot@chromium.org> | Mon Dec 07 13:34:58 2020 |
tree | 1204a02705b5dabcda0452e66b28a9d5a62af242 | |
parent | 0f0bcb39f3fcb2b6185f146dfc4f4357276e40d4 [diff] |
AGC2: Fix GetAvailableCpuFeatures() Handle the case in which neither WEBRTC_ARCH_X86_FAMILY nor WEBRTC_HAS_NEON are defined. Bug: webrtc:10480 Change-Id: I241583911d8e5645dfbd39b60337dd20b2d9f046 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/196525 Commit-Queue: Alessio Bazzica <alessiob@webrtc.org> Commit-Queue: Sam Zackrisson <saza@webrtc.org> Reviewed-by: Sam Zackrisson <saza@webrtc.org> Cr-Commit-Position: refs/heads/master@{#32786}
diff --git a/modules/audio_processing/agc2/cpu_features.cc b/modules/audio_processing/agc2/cpu_features.cc index b4f377f..10f9a19 100644 --- a/modules/audio_processing/agc2/cpu_features.cc +++ b/modules/audio_processing/agc2/cpu_features.cc
@@ -48,6 +48,10 @@ return {/*sse2=*/false, /*avx2=*/false, /*neon=*/true}; +#else + return {/*sse2=*/false, + /*avx2=*/false, + /*neon=*/false}; #endif }