Searched refs:MantissaWidth (Results 1 – 18 of 18) sorted by relevance
19 template <typename T> struct MantissaWidth {}; struct20 template <> struct MantissaWidth<float> {23 template <> struct MantissaWidth<double> {45 template <> struct MantissaWidth<long double> {69 UIntType mantissa : MantissaWidth<T>::value;78 (UIntType(1) << MantissaWidth<T>::value) - 1;80 (UIntType(1) << MantissaWidth<T>::value);82 ((UIntType(maxExponent) - 1) << MantissaWidth<T>::value) | maxSubnormal;
35 if (exponent >= static_cast<int>(MantissaWidth<T>::value)) in trunc()46 int trimSize = MantissaWidth<T>::value - exponent; in trunc()65 if (exponent >= static_cast<int>(MantissaWidth<T>::value)) in ceil()75 uint32_t trimSize = MantissaWidth<T>::value - exponent; in ceil()116 if (exponent >= static_cast<int>(MantissaWidth<T>::value)) in round()135 uint32_t trimSize = MantissaWidth<T>::value - exponent; in round()
19 template <> struct MantissaWidth<long double> {39 (UIntType(1) << (MantissaWidth<long double>::value + 1)) - 1;41 (UIntType(3) << MantissaWidth<long double>::value);43 ((UIntType(maxExponent) - 1) << (MantissaWidth<long double>::value + 1)) |44 (UIntType(1) << MantissaWidth<long double>::value) | maxSubnormal;46 UIntType mantissa : MantissaWidth<long double>::value;
142 if ((x_bits.exponent >= y_bits.exponent + MantissaWidth<T>::value + 2) ||146 x_bits.exponent + MantissaWidth<T>::value + 2) ||167 constexpr UIntType one = UIntType(1) << (MantissaWidth<T>::value + 1);177 y_mant_width = MantissaWidth<T>::value + 1;260 Y |= static_cast<UIntType>(out_exp) << MantissaWidth<T>::value;
34 static constexpr UIntType one = (UIntType(1) << MantissaWidth<T>::value);42 static_assert(sizeof(UIntType) * 8 >= MantissaWidth<T>::value + 1,107 if (shift <= MantissaWidth<T>::value + 1) { in T()165 for (; (one & m) == 0 && (shift < MantissaWidth<T>::value); in evaluateNormalizationShift()221 if (shift <= MantissaWidth<long double>::value + 1) {
49 << int(MantissaWidth<long double>::value);123 << (MantissaWidth<long double>::value + 1));
94 constexpr UIntType One = UIntType(1) << MantissaWidth<T>::value; in sqrt()169 y = (y - One) | (static_cast<UIntType>(xExp) << MantissaWidth<T>::value); in sqrt()
53 (fputil::MantissaWidth<ValType>::value - 1) / 4 + 1; in describeValue()
132 int expLimit = FPBits<T>::maxExponent + MantissaWidth<T>::value + 1; in ldexp()
123 constexpr int MantissaWidth() { in MantissaWidth() function128 constexpr int MantissaWidth<Eigen::half>() {134 constexpr int MantissaWidth<bfloat16>() {181 constexpr int bits = MantissaWidth<I>() - MantissaWidth<O>(); in EIGEN_EMPTY_STRUCT_CTOR()197 constexpr int bits = MantissaWidth<I>() - MantissaWidth<O>();216 constexpr int bits = MantissaWidth<I>() - MantissaWidth<O>();
21 UIntType(1) << __llvm_libc::fputil::MantissaWidth<long double>::value;
21 UIntType(1) << __llvm_libc::fputil::MantissaWidth<float>::value;
21 UIntType(1) << __llvm_libc::fputil::MantissaWidth<double>::value;
27 __llvm_libc::fputil::MantissaWidth<T>::value;
220 fputil::MantissaWidth<T>::value; in ulp()
4305 int MantissaWidth = LHSI->getType()->getFPMantissaWidth(); in FoldFCmp_IntToFP_Cst() local4306 if (MantissaWidth == -1) return nullptr; // Unknown. in FoldFCmp_IntToFP_Cst()4345 if ((int)InputSize > MantissaWidth) { in FoldFCmp_IntToFP_Cst()4356 if (MantissaWidth <= Exp && Exp <= (int)InputSize - !LHSUnsigned) in FoldFCmp_IntToFP_Cst()
5823 int MantissaWidth = LHSI->getType()->getFPMantissaWidth(); in foldFCmpIntToFPConst() local5824 if (MantissaWidth == -1) return nullptr; // Unknown. in foldFCmpIntToFPConst()5863 if ((int)InputSize > MantissaWidth) { in foldFCmpIntToFPConst()5874 if (MantissaWidth <= Exp && Exp <= (int)InputSize - !LHSUnsigned) in foldFCmpIntToFPConst()
5691 int MantissaWidth = LHSI->getType()->getFPMantissaWidth(); in foldFCmpIntToFPConst() local5692 if (MantissaWidth == -1) return nullptr; // Unknown. in foldFCmpIntToFPConst()5731 if ((int)InputSize > MantissaWidth) { in foldFCmpIntToFPConst()5742 if (MantissaWidth <= Exp && Exp <= (int)InputSize - !LHSUnsigned) in foldFCmpIntToFPConst()