Home
last modified time | relevance | path

Searched refs:MantissaWidth (Results 1 – 18 of 18) sorted by relevance

/external/llvm-project/libc/utils/FPUtil/
DFPBits.h19 template <typename T> struct MantissaWidth {}; struct
20 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;
DNearestIntegerOperations.h35 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()
DLongDoubleBitsX86.h19 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;
DHypot.h142 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;
DNormalFloat.h34 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) {
DSqrtLongDoubleX86.h49 << int(MantissaWidth<long double>::value);
123 << (MantissaWidth<long double>::value + 1));
DSqrt.h94 constexpr UIntType One = UIntType(1) << MantissaWidth<T>::value; in sqrt()
169 y = (y - One) | (static_cast<UIntType>(xExp) << MantissaWidth<T>::value); in sqrt()
DTestHelpers.cpp53 (fputil::MantissaWidth<ValType>::value - 1) / 4 + 1; in describeValue()
DManipulationFunctions.h132 int expLimit = FPBits<T>::maxExponent + MantissaWidth<T>::value + 1; in ldexp()
/external/tensorflow/tensorflow/core/kernels/
Dcast_op.h123 constexpr int MantissaWidth() { in MantissaWidth() function
128 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>();
/external/llvm-project/libc/test/src/math/
Dsqrtl_test.cpp21 UIntType(1) << __llvm_libc::fputil::MantissaWidth<long double>::value;
Dsqrtf_test.cpp21 UIntType(1) << __llvm_libc::fputil::MantissaWidth<float>::value;
Dsqrt_test.cpp21 UIntType(1) << __llvm_libc::fputil::MantissaWidth<double>::value;
DLdExpTest.h27 __llvm_libc::fputil::MantissaWidth<T>::value;
/external/llvm-project/libc/utils/MPFRWrapper/
DMPFRUtils.cpp220 fputil::MantissaWidth<T>::value; in ulp()
/external/llvm/lib/Transforms/InstCombine/
DInstCombineCompares.cpp4305 int MantissaWidth = LHSI->getType()->getFPMantissaWidth(); in FoldFCmp_IntToFP_Cst() local
4306 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()
/external/llvm-project/llvm/lib/Transforms/InstCombine/
DInstCombineCompares.cpp5823 int MantissaWidth = LHSI->getType()->getFPMantissaWidth(); in foldFCmpIntToFPConst() local
5824 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()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/InstCombine/
DInstCombineCompares.cpp5691 int MantissaWidth = LHSI->getType()->getFPMantissaWidth(); in foldFCmpIntToFPConst() local
5692 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()