Danil Chapovalov f4b21da965 Extend DivideRoundToNearest to support negative numbers and use for UnitBase
UnitBase own function to divide with rounding overflows when dividend is close to the max int64_t

Bug: b/262999013
Change-Id: I5b0c3f4408165a0f03690cab80bd098e506fc984
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/288521
Reviewed-by: Mirko Bonadei <mbonadei@webrtc.org>
Commit-Queue: Danil Chapovalov <danilchap@webrtc.org>
Cr-Commit-Position: refs/heads/main@{#38943}
2022-12-22 11:02:29 +00:00
..
2019-07-08 13:45:15 +00:00
2021-09-21 16:28:38 +00:00
2021-09-21 16:28:38 +00:00
2022-08-19 07:11:06 +00:00
2019-07-08 13:45:15 +00:00
2022-06-07 07:14:06 +00:00
2019-07-08 13:45:15 +00:00
2022-09-30 12:01:28 +00:00
2019-07-08 13:45:15 +00:00
2022-01-28 15:13:45 +00:00
2021-08-31 14:27:49 +00:00
2019-02-16 11:11:45 +00:00
2019-07-08 13:45:15 +00:00
2019-11-26 14:05:20 +00:00
2019-07-08 13:45:15 +00:00
2022-10-08 08:38:36 +00:00
2021-09-21 15:17:26 +00:00
2022-09-26 10:16:21 +00:00
2022-01-25 15:39:53 +00:00
2021-02-10 15:04:55 +00:00
2019-07-08 13:45:15 +00:00
2021-10-13 19:26:10 +00:00
2019-07-08 13:45:15 +00:00