Searched refs:FloatTraits (Results 1 – 3 of 3) sorted by relevance
55 template < typename FloatTraits > struct min_comparator_props57 typedef std::greater< typename FloatTraits::value_type > comparator;61 template < typename FloatTraits > struct max_comparator_props63 typedef std::less< typename FloatTraits::value_type > comparator;67 template < typename FloatTraits, typename ComparatorProps >70 typedef typename FloatTraits::value_type value_type;76 return FloatTraits::infinity() * ComparatorProps::multiplier; in infinity()81 return FloatTraits::epsilon() * ComparatorProps::multiplier; in epsilon()91 template < typename FloatTraits, typename Graph, typename VertexIndexMap,96 typedef typename FloatTraits::value_type float_t;[all …]
64 struct FloatTraits;67 struct FloatTraits<double> { struct136 struct FloatTraits<float> { struct263 mantissa_width - FloatTraits<FloatType>::kTargetMantissaBits; in NormalizedShiftSize()265 FloatTraits<FloatType>::kMinNormalExponent - binary_exponent; in NormalizedShiftSize()305 *value = negative ? -FloatTraits<FloatType>::MakeNan(nan_argument) in HandleEdgeCase()306 : FloatTraits<FloatType>::MakeNan(nan_argument); in HandleEdgeCase()340 *value = FloatTraits<FloatType>::Make(calculated.mantissa, in EncodeResult()502 if (mantissa == uint64_t(1) << FloatTraits<FloatType>::kTargetMantissaBits) { in CalculatedFloatFromRawValues()506 if (exponent > FloatTraits<FloatType>::kMaxExponent) { in CalculatedFloatFromRawValues()
64 struct FloatTraits;67 struct FloatTraits<double> { struct136 struct FloatTraits<float> { struct263 mantissa_width - FloatTraits<FloatType>::kTargetMantissaBits; in NormalizedShiftSize()265 FloatTraits<FloatType>::kMinNormalExponent - binary_exponent; in NormalizedShiftSize()305 *value = negative ? -FloatTraits<FloatType>::MakeNan(nan_argument) in HandleEdgeCase()306 : FloatTraits<FloatType>::MakeNan(nan_argument); in HandleEdgeCase()340 *value = FloatTraits<FloatType>::Make(calculated.mantissa, in EncodeResult()502 if (mantissa == uint64_t{1} << FloatTraits<FloatType>::kTargetMantissaBits) { in CalculatedFloatFromRawValues()506 if (exponent > FloatTraits<FloatType>::kMaxExponent) { in CalculatedFloatFromRawValues()