Home
last modified time | relevance | path

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

/external/libchrome/base/numerics/
Dsafe_numerics_unittest.cc49 typedef numeric_limits<Src> SrcLimits; in GetMaxConvertibleToFloat() typedef
50 static_assert(SrcLimits::is_specialized, "Source must be numeric."); in GetMaxConvertibleToFloat()
54 if (SrcLimits::digits <= DstLimits::digits && in GetMaxConvertibleToFloat()
56 return SrcLimits::max(); in GetMaxConvertibleToFloat()
57 Src max = SrcLimits::max() / 2 + (SrcLimits::is_integer ? 1 : 0); in GetMaxConvertibleToFloat()
316 typedef numeric_limits<Src> SrcLimits; in Test() typedef
319 static_assert((DstLimits::is_iec559 && SrcLimits::is_integer) || in Test()
321 (!(DstLimits::is_integer && SrcLimits::is_iec559) && in Test()
323 ((SrcLimits::is_signed == DstLimits::is_signed && in Test()
329 const CheckedNumeric<Dst> checked_dst = SrcLimits::max(); in Test()
[all …]
Dsafe_conversions_impl.h139 typedef typename std::numeric_limits<Src> SrcLimits;
145 SrcLimits::digits < DstLimits::digits &&
146 SrcLimits::is_iec559 &&
148 ? (DstLimits::digits - SrcLimits::digits)
/external/webrtc/webrtc/base/
Dsafe_conversions_impl.h49 typedef std::numeric_limits<Src> SrcLimits;
54 static const size_t kSrcMaxExponent = SrcLimits::is_iec559 ?
55 SrcLimits::max_exponent :
70 typedef std::numeric_limits<Src> SrcLimits;
162 typedef std::numeric_limits<Src> SrcLimits;
165 static const size_t kSrcMaxExponent = SrcLimits::is_iec559 ?
166 SrcLimits::max_exponent :
/external/pdfium/third_party/base/numerics/
Dsafe_conversions_impl.h191 using SrcLimits = std::numeric_limits<Src>;
197 SrcLimits::digits < DstLimits::digits)
198 ? (DstLimits::digits - SrcLimits::digits)
257 using SrcLimits = std::numeric_limits<Src>;
260 static_cast<Dst>(SrcLimits::lowest()) >= DstLimits::lowest() ||
262 static_cast<Dst>(SrcLimits::max()) <= DstLimits::max() ||
328 using SrcLimits = std::numeric_limits<Src>;
334 static_cast<Promotion>(SrcLimits::max()) <=