commit | 33b83fdc9558d4919d3e8ee7b2dca1f6e9e65197 | [log] [tgz] |
---|---|---|
author | Danil Chapovalov <danilchap@webrtc.org> | Wed Sep 18 15:48:23 2019 +0200 |
committer | Commit Bot <commit-bot@chromium.org> | Wed Sep 18 15:08:39 2019 +0000 |
tree | 9a86abbeb20e549719f8df0b5f9f7c9378d17ea2 | |
parent | b6a45dda4cddb612d8e89b67ea1cd630da2f1bbf [diff] |
Introduce integer division helpers with non-default rounding There are multiple places in webrtc code where alternative than default rounding is desired. Typically this rounding is inlined. e.g. as (<x> + <y>/2) / <y> making code more clumpsy (<y> might be long expression) and unsafe for large values of <x> This change introduce small helpers to address both concerns. Bug: None Change-Id: Icd8dcee80a697b7c50ba0b2e50295087d2be8670 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/153354 Commit-Queue: Danil Chapovalov <danilchap@webrtc.org> Reviewed-by: Karl Wiberg <kwiberg@webrtc.org> Reviewed-by: Niels Moller <nisse@webrtc.org> Cr-Commit-Position: refs/heads/master@{#29222}
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.
Authoritative list of directories that contain the native API header files.