Move SampleStatsCounter to public API
Bug: None Change-Id: I8956f6febbb1caf71e951d212d57746fe1ec5eb2 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/184506 Commit-Queue: Artem Titov <titovartem@webrtc.org> Reviewed-by: Karl Wiberg <kwiberg@webrtc.org> Cr-Commit-Position: refs/heads/master@{#32142}
This commit is contained in:
@ -8,14 +8,16 @@
|
||||
* be found in the AUTHORS file in the root of the source tree.
|
||||
*/
|
||||
|
||||
#ifndef RTC_BASE_NUMERICS_MATH_UTILS_H_
|
||||
#define RTC_BASE_NUMERICS_MATH_UTILS_H_
|
||||
#ifndef API_NUMERICS_MATH_UTILS_H_
|
||||
#define API_NUMERICS_MATH_UTILS_H_
|
||||
|
||||
#include <limits>
|
||||
#include <type_traits>
|
||||
|
||||
#include "rtc_base/checks.h"
|
||||
|
||||
namespace webrtc {
|
||||
namespace webrtc_impl {
|
||||
// Given two numbers |x| and |y| such that x >= y, computes the difference
|
||||
// x - y without causing undefined behavior due to signed overflow.
|
||||
template <typename T>
|
||||
@ -67,4 +69,7 @@ constexpr T minus_infinity_or_min() {
|
||||
return std::numeric_limits<T>::min();
|
||||
}
|
||||
|
||||
#endif // RTC_BASE_NUMERICS_MATH_UTILS_H_
|
||||
} // namespace webrtc_impl
|
||||
} // namespace webrtc
|
||||
|
||||
#endif // API_NUMERICS_MATH_UTILS_H_
|
||||
|
Reference in New Issue
Block a user