Home | History | Annotate | Download | only in numerics

Lines Matching refs:value

15 // Convenience function that returns true if the supplied value is in range
18 inline bool IsValueInRangeForNumericType(Src value) {
19 return internal::DstRangeRelationToSrcRange<Dst>(value) ==
27 inline Dst checked_cast(Src value) {
28 CHECK(IsValueInRangeForNumericType<Dst>(value));
29 return static_cast<Dst>(value);
36 inline Dst saturated_cast(Src value) {
39 return static_cast<Dst>(value);
41 switch (internal::DstRangeRelationToSrcRange<Dst>(value)) {
43 return static_cast<Dst>(value);
58 return static_cast<Dst>(value);