webrtc/rtc_base/units
Danil Chapovalov ef9bcd17a5 Make webrtc units division by integer constexpr
std::round is not constexpr until c++23 and force conversion to floating point which is unnecessary for integer devision

For integer division change rounding to 'round down' from 'round to nearest' as less surprising.

Bug: webrtc:13756
Change-Id: I9c2382bafc9ddccb0f54d6e7bf8cac4f2a3175a1
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/265863
Reviewed-by: Harald Alvestrand <hta@webrtc.org>
Commit-Queue: Danil Chapovalov <danilchap@webrtc.org>
Cr-Commit-Position: refs/heads/main@{#37250}
2022-06-17 10:34:09 +00:00
..
BUILD.gn Reformat GN files. 2020-01-21 12:13:11 +00:00
OWNERS Adds srte@ as OWNER of units. 2019-06-05 15:08:57 +00:00
unit_base.h Make webrtc units division by integer constexpr 2022-06-17 10:34:09 +00:00
unit_base_unittest.cc Make webrtc units division by integer constexpr 2022-06-17 10:34:09 +00:00