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:
@ -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.
|
||||
|
||||
Reference in New Issue
Block a user