Lines Matching refs:APFloat
23 using APFloat = llvm::APFloat; variable
29 APFloat F;
34 Floating(const APFloat &F) : F(F) {} in Floating()
38 return Floating(APFloat::getInf(Sem)); in getInf()
40 const APFloat &getAPFloat() const { return F; } in getAPFloat()
50 APFloat::opStatus convertToInteger(APSInt &Result) const { in convertToInteger()
52 return F.convertToInteger(Result, llvm::APFloat::rmTowardZero, &IsExact); in convertToInteger()
57 APFloat Copy = F; in toSemantics()
102 APFloat::fltCategory getCategory() const { return F.getCategory(); } in getCategory()
119 static APFloat::opStatus fromIntegral(APSInt Val, in fromIntegral()
123 APFloat F = APFloat(Sem); in fromIntegral()
124 APFloat::opStatus Status = F.convertFromAPInt(Val, Val.isSigned(), RM); in fromIntegral()
131 size_t Size = APFloat::semanticsSizeInBits(Sem); in bitcastFromMemory()
135 return Floating(APFloat(Sem, API)); in bitcastFromMemory()
141 (APFloat::semanticsSizeInBits(F.getSemantics()) / 8); in bytesToSerialize()
160 APFloat V = F.F; in abs()
168 static APFloat::opStatus add(const Floating &A, const Floating &B, in add()
174 static APFloat::opStatus increment(const Floating &A, llvm::RoundingMode RM, in increment()
176 APFloat One(A.F.getSemantics(), 1); in increment()
181 static APFloat::opStatus sub(const Floating &A, const Floating &B, in sub()
187 static APFloat::opStatus decrement(const Floating &A, llvm::RoundingMode RM, in decrement()
189 APFloat One(A.F.getSemantics(), 1); in decrement()
194 static APFloat::opStatus mul(const Floating &A, const Floating &B, in mul()
200 static APFloat::opStatus div(const Floating &A, const Floating &B, in div()