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}
This commit is contained in:
Oleh Prypin
2019-03-27 09:38:52 +01:00
committed by Commit Bot
parent a7d8f19a77
commit 708eccc1bd

View File

@ -11,6 +11,7 @@
#include <stdio.h>
#include <algorithm>
#include <cmath>
#include <limits>
#include <memory>
#include <queue>
@ -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;