Home
last modified time | relevance | path

Searched refs:ClampedNumeric (Results 1 – 4 of 4) sorted by relevance

/third_party/gn/src/base/numerics/
Dclamped_math.h19 class ClampedNumeric {
26 constexpr ClampedNumeric() : value_(0) {} in ClampedNumeric() function
30 constexpr ClampedNumeric(const ClampedNumeric<Src>& rhs) in ClampedNumeric() function
34 friend class ClampedNumeric; variable
39 constexpr ClampedNumeric(Src value) // NOLINT(runtime/explicit) in ClampedNumeric() function
47 constexpr ClampedNumeric( in ClampedNumeric() function
54 constexpr ClampedNumeric<typename UnderlyingType<Dst>::type> Cast() const { in Cast()
60 constexpr ClampedNumeric& operator+=(const Src rhs);
62 constexpr ClampedNumeric& operator-=(const Src rhs);
64 constexpr ClampedNumeric& operator*=(const Src rhs);
[all …]
Dsafe_conversions_impl.h600 class ClampedNumeric;
625 struct UnderlyingType<ClampedNumeric<T>> {
/third_party/skia/third_party/externals/angle2/src/common/third_party/base/anglebase/numerics/
Dclamped_math.h23 class ClampedNumeric
30 constexpr ClampedNumeric() : value_(0) {} in ClampedNumeric() function
34 constexpr ClampedNumeric(const ClampedNumeric<Src> &rhs) : value_(saturated_cast<T>(rhs.value_)) in ClampedNumeric() function
38 friend class ClampedNumeric; variable
43 constexpr ClampedNumeric(Src value) // NOLINT(runtime/explicit) in ClampedNumeric() function
52 constexpr ClampedNumeric(StrictNumeric<Src> value) // NOLINT(runtime/explicit) in ClampedNumeric() function
59 constexpr ClampedNumeric<typename UnderlyingType<Dst>::type> Cast() const in Cast()
66 constexpr ClampedNumeric &operator+=(const Src rhs);
68 constexpr ClampedNumeric &operator-=(const Src rhs);
70 constexpr ClampedNumeric &operator*=(const Src rhs);
[all …]
Dsafe_conversions_impl.h625 class ClampedNumeric;
652 struct UnderlyingType<ClampedNumeric<T>>