Qualify cmath function calls.
Bug: webrtc:10433
Change-Id: Ib3644b2dad4f0068a81c76824b5d52cb7a5507e3
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/129862
Reviewed-by: Karl Wiberg <kwiberg@webrtc.org>
Reviewed-by: Minyue Li <minyue@webrtc.org>
Commit-Queue: Oleh Prypin <oprypin@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#27374}
diff --git a/modules/audio_processing/audio_processing_unittest.cc b/modules/audio_processing/audio_processing_unittest.cc
index b5fb2b8..ddfcf58 100644
--- a/modules/audio_processing/audio_processing_unittest.cc
+++ b/modules/audio_processing/audio_processing_unittest.cc
@@ -11,6 +11,7 @@
#include <stdio.h>
#include <algorithm>
+#include <cmath>
#include <limits>
#include <memory>
#include <queue>
@@ -1780,7 +1781,7 @@
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 @@
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;