Searched refs:DstLimits (Results 1 – 5 of 5) sorted by relevance
49 typedef numeric_limits<Dst> DstLimits; in GetMaxConvertibleToFloat() typedef52 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() typedef87 -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 …]
138 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();
45 typedef numeric_limits<Dst> DstLimits; in GetMaxConvertibleToFloat() typedef48 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() typedef83 -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 …]
136 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();
48 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 …]