Remove C++11 calls from intelligibility_utils

The C++11 here was overkill. This replaces it with simpler logic that
covers all cases encountered so far in practice.

The problem was previously brought up here: https://codereview.webrtc.org/1250663007/

BUG=427718, 487341, webrtc:4866
R=andrew@webrtc.org

Review URL: https://codereview.webrtc.org/1242943008

Cr-Commit-Position: refs/heads/master@{#9627}
This commit is contained in:
ekmeyerson
2015-07-23 12:15:24 -07:00
committed by Commit bot
parent 86c6d33aec
commit 3ab2f14d56
3 changed files with 6 additions and 41 deletions

View File

@ -27,12 +27,6 @@ namespace intelligibility {
// |limit|.
float UpdateFactor(float target, float current, float limit);
// std::isfinite for complex numbers.
bool cplxfinite(std::complex<float> c);
// std::isnormal for complex numbers.
bool cplxnormal(std::complex<float> c);
// Apply a small fudge to degenerate complex values. The numbers in the array
// were chosen randomly, so that even a series of all zeroes has some small
// variability.