From 708eccc1bd2d0163e35df9605649e6cadd68f589 Mon Sep 17 00:00:00 2001 From: Oleh Prypin Date: Wed, 27 Mar 2019 09:38:52 +0100 Subject: [PATCH] Qualify cmath function calls. Bug: webrtc:10433 Change-Id: Ib3644b2dad4f0068a81c76824b5d52cb7a5507e3 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/129862 Reviewed-by: Karl Wiberg Reviewed-by: Minyue Li Commit-Queue: Oleh Prypin Cr-Commit-Position: refs/heads/master@{#27374} --- modules/audio_processing/audio_processing_unittest.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/modules/audio_processing/audio_processing_unittest.cc b/modules/audio_processing/audio_processing_unittest.cc index b5fb2b85c8..ddfcf58065 100644 --- a/modules/audio_processing/audio_processing_unittest.cc +++ b/modules/audio_processing/audio_processing_unittest.cc @@ -11,6 +11,7 @@ #include #include +#include #include #include #include @@ -1780,7 +1781,7 @@ TEST_F(ApmTest, FloatAndIntInterfacesGiveSimilarResults) { const float kSNRThreshold = 20; // Skip frames with low energy. - if (sqrt(variance) > kVarianceThreshold && snr < kSNRThreshold) { + if (std::sqrt(variance) > kVarianceThreshold && snr < kSNRThreshold) { ++num_bad_chunks; } } @@ -2393,7 +2394,7 @@ TEST_P(AudioProcessingTest, Formats) { PushSincResampler::AlgorithmicDelaySeconds(out_rate); } int expected_delay = - floor(expected_delay_sec * ref_rate + 0.5f) * out_num; + std::floor(expected_delay_sec * ref_rate + 0.5f) * out_num; double variance = 0; double sq_error = 0;