Home | History | Annotate | Download | only in numerics

Lines Matching refs:Dst

18 template <typename Dst, typename Src>
20 return internal::DstRangeRelationToSrcRange<Dst>(value) ==
27 template <typename Dst, typename Src>
28 inline Dst checked_cast(Src value) {
29 CHECK(IsValueInRangeForNumericType<Dst>(value));
30 return static_cast<Dst>(value);
36 template <typename Dst, typename Src>
37 inline Dst saturated_cast(Src value) {
39 if (std::numeric_limits<Dst>::is_iec559)
40 return static_cast<Dst>(value);
42 switch (internal::DstRangeRelationToSrcRange<Dst>(value)) {
44 return static_cast<Dst>(value);
47 return std::numeric_limits<Dst>::min();
50 return std::numeric_limits<Dst>::max();
55 return std::numeric_limits<Dst>::max();
59 return static_cast<Dst>(value);