Home
last modified time | relevance | path

Searched refs:DstLimits (Results 1 – 5 of 5) sorted by relevance

/external/libchrome/base/numerics/
Dsafe_numerics_unittest.cc49 typedef numeric_limits<Dst> DstLimits; in GetMaxConvertibleToFloat() typedef
52 static_assert(DstLimits::is_specialized, "Destination must be numeric."); in GetMaxConvertibleToFloat()
53 CHECK(DstLimits::is_iec559); in GetMaxConvertibleToFloat()
55 if (SrcLimits::digits <= DstLimits::digits && in GetMaxConvertibleToFloat()
85 typedef numeric_limits<Dst> DstLimits; in TestSpecializedArithmetic() typedef
87 -CheckedNumeric<Dst>(DstLimits::min())); in TestSpecializedArithmetic()
89 CheckedNumeric<Dst>(DstLimits::min()).Abs()); in TestSpecializedArithmetic()
93 CheckedNumeric<Dst>(DstLimits::max()) + -1); in TestSpecializedArithmetic()
95 CheckedNumeric<Dst>(DstLimits::min()) + -1); in TestSpecializedArithmetic()
98 CheckedNumeric<Dst>(-DstLimits::max()) + -DstLimits::max()); in TestSpecializedArithmetic()
[all …]
Dsafe_conversions_impl.h138 typedef typename std::numeric_limits<Dst> DstLimits;
146 SrcLimits::digits < DstLimits::digits && SrcLimits::is_iec559 &&
147 DstLimits::is_integer)
148 ? (DstLimits::digits - SrcLimits::digits)
154 return DstLimits::max() - static_cast<Dst>((UINTMAX_C(1) << shift) - 1);
158 return std::numeric_limits<Dst>::is_iec559 ? -DstLimits::max()
159 : DstLimits::min();
/external/libweave/third_party/chromium/base/numerics/
Dsafe_numerics_unittest.cc45 typedef numeric_limits<Dst> DstLimits; in GetMaxConvertibleToFloat() typedef
48 static_assert(DstLimits::is_specialized, "Destination must be numeric."); in GetMaxConvertibleToFloat()
49 CHECK(DstLimits::is_iec559); in GetMaxConvertibleToFloat()
51 if (SrcLimits::digits <= DstLimits::digits && in GetMaxConvertibleToFloat()
81 typedef numeric_limits<Dst> DstLimits; in TestSpecializedArithmetic() typedef
83 -CheckedNumeric<Dst>(DstLimits::min())); in TestSpecializedArithmetic()
85 CheckedNumeric<Dst>(DstLimits::min()).Abs()); in TestSpecializedArithmetic()
89 CheckedNumeric<Dst>(DstLimits::max()) + -1); in TestSpecializedArithmetic()
91 CheckedNumeric<Dst>(DstLimits::min()) + -1); in TestSpecializedArithmetic()
94 CheckedNumeric<Dst>(-DstLimits::max()) + -DstLimits::max()); in TestSpecializedArithmetic()
[all …]
Dsafe_conversions_impl.h136 typedef typename std::numeric_limits<Dst> DstLimits;
144 SrcLimits::digits < DstLimits::digits && SrcLimits::is_iec559 &&
145 DstLimits::is_integer)
146 ? (DstLimits::digits - SrcLimits::digits)
152 return DstLimits::max() - static_cast<Dst>((UINTMAX_C(1) << shift) - 1);
156 return std::numeric_limits<Dst>::is_iec559 ? -DstLimits::max()
157 : DstLimits::min();
/external/webrtc/webrtc/base/
Dsafe_conversions_impl.h48 typedef std::numeric_limits<Dst> DstLimits;
51 static const size_t kDstMaxExponent = DstLimits::is_iec559 ?
52 DstLimits::max_exponent :
69 typedef std::numeric_limits<Dst> DstLimits;
72 static const size_t kDstMaxExponent = DstLimits::is_iec559 ?
73 DstLimits::max_exponent :
125 typedef std::numeric_limits<Dst> DstLimits;
126 return DstLimits::is_iec559 ?
128 value <= static_cast<Src>(DstLimits::max()),
129 value >= static_cast<Src>(DstLimits::max() * -1)) :
[all …]