Home
last modified time | relevance | path

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

/external/libchrome/base/numerics/
Dsafe_numerics_unittest.cc50 typedef numeric_limits<Src> SrcLimits; in GetMaxConvertibleToFloat() typedef
51 static_assert(SrcLimits::is_specialized, "Source must be numeric."); in GetMaxConvertibleToFloat()
55 if (SrcLimits::digits <= DstLimits::digits && in GetMaxConvertibleToFloat()
57 return SrcLimits::max(); in GetMaxConvertibleToFloat()
58 Src max = SrcLimits::max() / 2 + (SrcLimits::is_integer ? 1 : 0); in GetMaxConvertibleToFloat()
339 typedef numeric_limits<Src> SrcLimits; in Test() typedef
342 static_assert((DstLimits::is_iec559 && SrcLimits::is_integer) || in Test()
344 (!(DstLimits::is_integer && SrcLimits::is_iec559) && in Test()
346 ((SrcLimits::is_signed == DstLimits::is_signed && in Test()
352 const CheckedNumeric<Dst> checked_dst = SrcLimits::max(); in Test()
[all …]
Dsafe_conversions_impl.h137 typedef typename std::numeric_limits<Src> SrcLimits;
146 SrcLimits::digits < DstLimits::digits && SrcLimits::is_iec559 &&
148 ? (DstLimits::digits - SrcLimits::digits)
/external/libweave/third_party/chromium/base/numerics/
Dsafe_numerics_unittest.cc46 typedef numeric_limits<Src> SrcLimits; in GetMaxConvertibleToFloat() typedef
47 static_assert(SrcLimits::is_specialized, "Source must be numeric."); in GetMaxConvertibleToFloat()
51 if (SrcLimits::digits <= DstLimits::digits && in GetMaxConvertibleToFloat()
53 return SrcLimits::max(); in GetMaxConvertibleToFloat()
54 Src max = SrcLimits::max() / 2 + (SrcLimits::is_integer ? 1 : 0); in GetMaxConvertibleToFloat()
335 typedef numeric_limits<Src> SrcLimits; in Test() typedef
338 static_assert((DstLimits::is_iec559 && SrcLimits::is_integer) || in Test()
340 (!(DstLimits::is_integer && SrcLimits::is_iec559) && in Test()
342 ((SrcLimits::is_signed == DstLimits::is_signed && in Test()
348 const CheckedNumeric<Dst> checked_dst = SrcLimits::max(); in Test()
[all …]
Dsafe_conversions_impl.h135 typedef typename std::numeric_limits<Src> SrcLimits;
144 SrcLimits::digits < DstLimits::digits && SrcLimits::is_iec559 &&
146 ? (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 :