Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1214)

Unified Diff: modules/audio_processing/intelligibility/intelligibility_utils.cc

Issue 1250663007: Allow webrtc compilation with stlport (Closed) Base URL: https://chromium.googlesource.com/external/webrtc/trunk/webrtc.git@master
Patch Set: Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: modules/audio_processing/intelligibility/intelligibility_utils.cc
diff --git a/modules/audio_processing/intelligibility/intelligibility_utils.cc b/modules/audio_processing/intelligibility/intelligibility_utils.cc
index d67d200689f1613391c18c138b55f504a18ffde4..0f9ff78a828b973a9f8690f847e369f34bc0fc84 100644
--- a/modules/audio_processing/intelligibility/intelligibility_utils.cc
+++ b/modules/audio_processing/intelligibility/intelligibility_utils.cc
@@ -36,7 +36,7 @@ bool cplxfinite(complex<float> c) {
}
bool cplxnormal(complex<float> c) {
- return std::isnormal(c.real()) && std::isnormal(c.imag());
+ return isnormal(c.real()) && isnormal(c.imag());
}
complex<float> zerofudge(complex<float> c) {
@@ -321,7 +321,7 @@ void GainApplier::Apply(const complex<float>* in_block,
complex<float>* out_block) {
for (int i = 0; i < freqs_; ++i) {
float factor = sqrtf(fabsf(current_[i]));
- if (!std::isnormal(factor)) {
+ if (!isnormal(factor)) {
factor = 1.0f;
}
out_block[i] = factor * in_block[i];

Powered by Google App Engine
This is Rietveld 408576698