webrtc/modules/audio_processing/aec3
Raphael Kubo da Costa 0743814fb8 aec3: Use fabsf() instead of std::abs() for floats.
We are using <math.h>, not <cmath>. While the latter defines additional
overloads for abs(), including abs(float), they are not guaranteed to be
available in <math.h>.

libc++ ships its own math.h with the additional overloads, and libstdc++ (v6
or later) has a math.h that includes <cmath>, but this is not always
expected to work: for example, GCC 5.x's libstdc++ does not have these
additional overloads and causes the build to fail.

Just use fabsf() from the C standard library directly, as it achieves the
same thing in a more portable fashion.

Bug: None
Change-Id: I805728269b35051edb54126e204eccd2706e3a92
Reviewed-on: https://webrtc-review.googlesource.com/11460
Reviewed-by: Henrik Lundin <henrik.lundin@webrtc.org>
Commit-Queue: Raphael Kubo da Costa (rakuco) <raphael.kubo.da.costa@intel.com>
Cr-Commit-Position: refs/heads/master@{#20325}
2017-10-17 14:03:01 +00:00
..
mock Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
adaptive_fir_filter.cc Adding NOLINT for typedefs.h and common_types.h 2017-09-15 13:03:51 +00:00
adaptive_fir_filter.h Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
adaptive_fir_filter_unittest.cc Transparency improvements for AEC3 during call start and after resets 2017-10-17 06:00:50 +00:00
aec3_common.cc Adding NOLINT for typedefs.h and common_types.h 2017-09-15 13:03:51 +00:00
aec3_common.h Transparency improvements for AEC3 during call start and after resets 2017-10-17 06:00:50 +00:00
aec3_fft.cc Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
aec3_fft.h Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
aec3_fft_unittest.cc Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
aec_state.cc aec3: Use fabsf() instead of std::abs() for floats. 2017-10-17 14:03:01 +00:00
aec_state.h Transparency improvements for AEC3 during call start and after resets 2017-10-17 06:00:50 +00:00
aec_state_unittest.cc Corrected and robustified the detection of the delay in the AEC3 filter 2017-10-17 11:30:50 +00:00
block_framer.cc Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
block_framer.h Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
block_framer_unittest.cc Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
block_processor.cc Reland of Added logging inside AEC3 for render API buffer 2017-09-27 07:29:25 +00:00
block_processor.h Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
block_processor_metrics.cc Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
block_processor_metrics.h Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
block_processor_metrics_unittest.cc Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
block_processor_unittest.cc Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
cascaded_biquad_filter.cc Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
cascaded_biquad_filter.h Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
cascaded_biquad_filter_unittest.cc Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
comfort_noise_generator.cc Adding NOLINT for typedefs.h and common_types.h 2017-09-15 13:03:51 +00:00
comfort_noise_generator.h Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
comfort_noise_generator_unittest.cc Adding NOLINT for typedefs.h and common_types.h 2017-09-15 13:03:51 +00:00
decimator_by_4.cc Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
decimator_by_4.h Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
decimator_by_4_unittest.cc Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
downsampled_render_buffer.cc Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
downsampled_render_buffer.h Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
echo_canceller3.cc Added EchoCanceller3Factory. 2017-10-14 07:38:32 +00:00
echo_canceller3.h Added EchoCanceller3Factory. 2017-10-14 07:38:32 +00:00
echo_canceller3_unittest.cc Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
echo_path_delay_estimator.cc Changed the aggregation of AEC3 matched filter delay estimates 2017-10-11 07:52:19 +00:00
echo_path_delay_estimator.h Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
echo_path_delay_estimator_unittest.cc Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
echo_path_variability.cc Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
echo_path_variability.h Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
echo_path_variability_unittest.cc Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
echo_remover.cc Transparency improvements for AEC3 during call start and after resets 2017-10-17 06:00:50 +00:00
echo_remover.h Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
echo_remover_metrics.cc Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
echo_remover_metrics.h Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
echo_remover_metrics_unittest.cc Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
echo_remover_unittest.cc Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
erl_estimator.cc Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
erl_estimator.h Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
erl_estimator_unittest.cc Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
erle_estimator.cc Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
erle_estimator.h Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
erle_estimator_unittest.cc Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
fft_data.h Adding NOLINT for typedefs.h and common_types.h 2017-09-15 13:03:51 +00:00
fft_data_unittest.cc Adding NOLINT for typedefs.h and common_types.h 2017-09-15 13:03:51 +00:00
frame_blocker.cc Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
frame_blocker.h Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
frame_blocker_unittest.cc Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
main_filter_update_gain.cc Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
main_filter_update_gain.h Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
main_filter_update_gain_unittest.cc Transparency improvements for AEC3 during call start and after resets 2017-10-17 06:00:50 +00:00
matched_filter.cc Changed the aggregation of AEC3 matched filter delay estimates 2017-10-11 07:52:19 +00:00
matched_filter.h Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
matched_filter_lag_aggregator.cc Cleanup in the code for the lag estimation in AEC3 2017-10-11 15:11:22 +00:00
matched_filter_lag_aggregator.h Cleanup in the code for the lag estimation in AEC3 2017-10-11 15:11:22 +00:00
matched_filter_lag_aggregator_unittest.cc Cleanup in the code for the lag estimation in AEC3 2017-10-11 15:11:22 +00:00
matched_filter_unittest.cc Adding NOLINT for typedefs.h and common_types.h 2017-09-15 13:03:51 +00:00
output_selector.cc Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
output_selector.h Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
output_selector_unittest.cc Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
render_buffer.cc Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
render_buffer.h Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
render_buffer_unittest.cc Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
render_delay_buffer.cc Transparency improvements for AEC3 during call start and after resets 2017-10-17 06:00:50 +00:00
render_delay_buffer.h Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
render_delay_buffer_unittest.cc Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
render_delay_controller.cc Added the ability to set the default echo path delay in AEC3. 2017-10-09 10:52:07 +00:00
render_delay_controller.h Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
render_delay_controller_metrics.cc Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
render_delay_controller_metrics.h Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
render_delay_controller_metrics_unittest.cc Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
render_delay_controller_unittest.cc Eliminating the risk of sustained echo during capture data loss in AEC3. 2017-09-15 21:24:46 +00:00
render_signal_analyzer.cc Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
render_signal_analyzer.h Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
render_signal_analyzer_unittest.cc Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
residual_echo_estimator.cc Transparency improvements for AEC3 during call start and after resets 2017-10-17 06:00:50 +00:00
residual_echo_estimator.h Transparency improvements for AEC3 during call start and after resets 2017-10-17 06:00:50 +00:00
residual_echo_estimator_unittest.cc Transparency improvements for AEC3 during call start and after resets 2017-10-17 06:00:50 +00:00
shadow_filter_update_gain.cc Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
shadow_filter_update_gain.h Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
shadow_filter_update_gain_unittest.cc Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
subtractor.cc Transparency improvements for AEC3 during call start and after resets 2017-10-17 06:00:50 +00:00
subtractor.h Transparency improvements for AEC3 during call start and after resets 2017-10-17 06:00:50 +00:00
subtractor_output.h Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
subtractor_unittest.cc Transparency improvements for AEC3 during call start and after resets 2017-10-17 06:00:50 +00:00
suppression_filter.cc Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
suppression_filter.h Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
suppression_filter_unittest.cc Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
suppression_gain.cc AEC3 tunings to increase the transparency 2017-10-11 07:28:09 +00:00
suppression_gain.h Separated the NLP behavior in AEC3 for different echo estimates. 2017-10-09 13:16:37 +00:00
suppression_gain_unittest.cc Separated the NLP behavior in AEC3 for different echo estimates. 2017-10-09 13:16:37 +00:00
vector_math.h Adding NOLINT for typedefs.h and common_types.h 2017-09-15 13:03:51 +00:00
vector_math_unittest.cc Adding NOLINT for typedefs.h and common_types.h 2017-09-15 13:03:51 +00:00