commit | 0743814fb852a02ca86b41e4d6def3abfb109bc3 | [log] [tgz] |
---|---|---|
author | Raphael Kubo da Costa <raphael.kubo.da.costa@intel.com> | Mon Oct 16 15:00:02 2017 |
committer | Commit Bot <commit-bot@chromium.org> | Tue Oct 17 14:03:01 2017 |
tree | deed5dc237bbe58b55def04865fa0bb8ea687ef9 | |
parent | 44b1fa43be3b398ba8ca9f59b877e5f9eb1180a6 [diff] |
aec3: Use fabsf() instead of std::abs() for floats. We are using <math.h>, not <cmath>. While the latter defines additional overloads for abs(), including abs(float), they are not guaranteed to be available in <math.h>. libc++ ships its own math.h with the additional overloads, and libstdc++ (v6 or later) has a math.h that includes <cmath>, but this is not always expected to work: for example, GCC 5.x's libstdc++ does not have these additional overloads and causes the build to fail. Just use fabsf() from the C standard library directly, as it achieves the same thing in a more portable fashion. Bug: None Change-Id: I805728269b35051edb54126e204eccd2706e3a92 Reviewed-on: https://webrtc-review.googlesource.com/11460 Reviewed-by: Henrik Lundin <henrik.lundin@webrtc.org> Commit-Queue: Raphael Kubo da Costa (rakuco) <raphael.kubo.da.costa@intel.com> Cr-Commit-Position: refs/heads/master@{#20325}
WebRTC is a free, open software project that provides browsers and mobile applications with Real-Time Communications (RTC) capabilities via simple APIs. The WebRTC components have been optimized to best serve this purpose.
Our mission: To enable rich, high-quality RTC applications to be developed for the browser, mobile platforms, and IoT devices, and allow them all to communicate via a common set of protocols.
The WebRTC initiative is a project supported by Google, Mozilla and Opera, amongst others.
See http://www.webrtc.org/native-code/development for instructions on how to get started developing with the native code.