/external/llvm/unittests/ADT/ |
APFloatTest.cpp | 1 //===- llvm/unittest/ADT/APFloat.cpp - APFloat unit tests ---------------------===// 10 #include "llvm/ADT/APFloat.h" 22 llvm::APFloat F(0.0); 23 F.convertFromString(Str, llvm::APFloat::rmNearestTiesToEven); 29 llvm::APFloat F(d); 41 EXPECT_FALSE(APFloat::getQNaN(APFloat::IEEEsingle, false).isSignaling()); 42 EXPECT_FALSE(APFloat::getQNaN(APFloat::IEEEsingle, true).isSignaling()) [all...] |
/external/llvm/include/llvm/ADT/ |
APFloat.h | 1 //== llvm/Support/APFloat.h - Arbitrary Precision Floating Point -*- C++ -*-==// 42 /// APFloat uses bignum integer arithmetic as provided by static functions in 103 /// APFloat does not provide any exception handling beyond default exception 122 class APFloat { 183 /// Convenience enum used to construct an uninitialized APFloat. 191 APFloat(const fltSemantics &); // Default construct to 0.0 192 APFloat(const fltSemantics &, StringRef); 193 APFloat(const fltSemantics &, integerPart); 194 APFloat(const fltSemantics &, uninitializedTag); 195 APFloat(const fltSemantics &, const APInt &) [all...] |
/external/llvm/lib/Target/NVPTX/ |
NVPTXMCExpr.cpp | 18 NVPTXFloatMCExpr::Create(VariantKind Kind, APFloat Flt, MCContext &Ctx) { 25 APFloat APF = getAPFloat(); 32 APF.convert(APFloat::IEEEsingle, APFloat::rmNearestTiesToEven, &Ignored); 37 APF.convert(APFloat::IEEEdouble, APFloat::rmNearestTiesToEven, &Ignored);
|
NVPTXMCExpr.h | 15 #include "llvm/ADT/APFloat.h" 30 const APFloat Flt; 32 explicit NVPTXFloatMCExpr(VariantKind _Kind, APFloat _Flt) 39 static const NVPTXFloatMCExpr *Create(VariantKind Kind, APFloat Flt, 42 static const NVPTXFloatMCExpr *CreateConstantFPSingle(APFloat Flt, 47 static const NVPTXFloatMCExpr *CreateConstantFPDouble(APFloat Flt, 60 APFloat getAPFloat() const { return Flt; }
|
/external/llvm/lib/Support/ |
APFloat.cpp | 1 //===-- APFloat.cpp - Implement APFloat class -----------------------------===// 15 #include "llvm/ADT/APFloat.h" 29 /// in a switch statement to classify how the interaction of two APFloat's 47 APFloat::ExponentType maxExponent; 51 APFloat::ExponentType minExponent; 58 const fltSemantics APFloat::IEEEhalf = { 15, -14, 11 }; 59 const fltSemantics APFloat::IEEEsingle = { 127, -126, 24 }; 60 const fltSemantics APFloat::IEEEdouble = { 1023, -1022, 53 }; 61 const fltSemantics APFloat::IEEEquad = { 16383, -16382, 113 } [all...] |
/external/clang/include/clang/AST/ |
APValue.h | 1 //===--- APValue.h - Union class for APFloat/APSInt/Complex -----*- C++ -*-===// 18 #include "llvm/ADT/APFloat.h" 36 /// [APSInt] [APFloat], [Complex APSInt] [Complex APFloat], [Expr + Offset], 40 typedef llvm::APFloat APFloat; 76 APFloat Real, Imag; 126 explicit APValue(const APFloat &F) : Kind(Uninitialized) { 135 APValue(const APFloat &R, const APFloat &I) : Kind(Uninitialized) [all...] |
/external/chromium_org/third_party/mesa/src/src/gallium/drivers/radeon/ |
AMDGPUMCInstLower.cpp | 41 const APFloat &FloatValue = MO.getFPImm()->getValueAPF(); 42 assert(&FloatValue.getSemantics() == &APFloat::IEEEsingle &&
|
/external/llvm/lib/Target/R600/ |
AMDGPUMCInstLower.cpp | 44 const APFloat &FloatValue = MO.getFPImm()->getValueAPF(); 45 assert(&FloatValue.getSemantics() == &APFloat::IEEEsingle &&
|
/external/mesa3d/src/gallium/drivers/radeon/ |
AMDGPUMCInstLower.cpp | 41 const APFloat &FloatValue = MO.getFPImm()->getValueAPF(); 42 assert(&FloatValue.getSemantics() == &APFloat::IEEEsingle &&
|
/external/llvm/lib/Target/ARM/ |
ARMMCInstLower.cpp | 101 APFloat Val = MO.getFPImm()->getValueAPF(); 103 Val.convert(APFloat::IEEEdouble, APFloat::rmTowardZero, &ignored);
|
/external/llvm/lib/AsmParser/ |
LLLexer.h | 18 #include "llvm/ADT/APFloat.h" 42 APFloat APFloatVal; 61 const APFloat &getAPFloatVal() const { return APFloatVal; }
|
LLLexer.cpp | 749 APFloatVal = APFloat(BitsToDouble(HexIntToVal(TokStart+2, CurPtr))); 750 return lltok::APFloat; 759 APFloatVal = APFloat(APFloat::x87DoubleExtended, APInt(80, Pair)); 760 return lltok::APFloat; 764 APFloatVal = APFloat(APFloat::IEEEquad, APInt(128, Pair)); 765 return lltok::APFloat; 769 APFloatVal = APFloat(APFloat::PPCDoubleDouble, APInt(128, Pair)) [all...] |
/external/llvm/include/llvm/IR/ |
Type.h | 18 #include "llvm/ADT/APFloat.h" 171 case HalfTyID: return APFloat::IEEEhalf; 172 case FloatTyID: return APFloat::IEEEsingle; 173 case DoubleTyID: return APFloat::IEEEdouble; 174 case X86_FP80TyID: return APFloat::x87DoubleExtended; 175 case FP128TyID: return APFloat::IEEEquad; 176 case PPC_FP128TyID: return APFloat::PPCDoubleDouble;
|
/external/llvm/lib/Analysis/ |
ConstantFolding.cpp | [all...] |
/external/llvm/lib/Transforms/InstCombine/ |
InstCombineAddSub.cpp | 33 // The constructor has to initialize a APFloat, which is uncessary for 47 void set(const APFloat& C); 68 APFloat *getFpValPtr(void) 69 { return reinterpret_cast<APFloat*>(&FpValBuf.buffer[0]); } 70 const APFloat *getFpValPtr(void) const 71 { return reinterpret_cast<const APFloat*>(&FpValBuf.buffer[0]); } 73 const APFloat &getFpVal(void) const { 78 APFloat &getFpVal(void) { 89 // Construct an APFloat from a signed integer. 90 // TODO: We should get rid of this function when APFloat can be constructe [all...] |
/external/llvm/lib/IR/ |
LLVMContextImpl.h | 21 #include "llvm/ADT/APFloat.h" 71 APFloat val; 72 KeyTy(const APFloat& V) : val(V){} 84 return KeyTy(APFloat(APFloat::Bogus,1)); 87 return KeyTy(APFloat(APFloat::Bogus,2));
|
ConstantFold.cpp | 172 APFloat(DestTy->getFltSemantics(), 574 APFloat Val = FPC->getValueAPF(); 575 Val.convert(DestTy->isHalfTy() ? APFloat::IEEEhalf : 576 DestTy->isFloatTy() ? APFloat::IEEEsingle : 577 DestTy->isDoubleTy() ? APFloat::IEEEdouble : 578 DestTy->isX86_FP80Ty() ? APFloat::x87DoubleExtended : 579 DestTy->isFP128Ty() ? APFloat::IEEEquad : 580 DestTy->isPPC_FP128Ty() ? APFloat::PPCDoubleDouble : 581 APFloat::Bogus, 582 APFloat::rmNearestTiesToEven, &ignored) [all...] |
Constants.cpp | 117 APFloat::getZero(APFloat::IEEEhalf)); 120 APFloat::getZero(APFloat::IEEEsingle)); 123 APFloat::getZero(APFloat::IEEEdouble)); 126 APFloat::getZero(APFloat::x87DoubleExtended)); 129 APFloat::getZero(APFloat::IEEEquad)) [all...] |
/frameworks/compile/slang/ |
slang_rs_reflection_base.cpp | 175 llvm::APFloat apf = Val.getFloat(); 179 if (&apf.getSemantics() == &llvm::APFloat::IEEEsingle) {
|
/external/llvm/lib/ExecutionEngine/ |
ExecutionEngine.cpp | 625 APFloat apf = APFloat::getZero(APFloat::x87DoubleExtended); 628 APFloat::rmNearestTiesToEven); 640 APFloat apf = APFloat::getZero(APFloat::x87DoubleExtended); 643 APFloat::rmNearestTiesToEven); 657 APFloat apf = APFloat(APFloat::x87DoubleExtended, GV.IntVal) [all...] |
/external/clang/include/clang/Lex/ |
LiteralSupport.h | 21 #include "llvm/ADT/APFloat.h" 93 /// the specified APFloat fltSemantics (specifying float, double, etc). 95 /// set to true if the returned APFloat can represent the number in the 97 llvm::APFloat::opStatus GetFloatValue(llvm::APFloat &Result);
|
/external/clang/lib/Basic/ |
TargetInfo.cpp | 18 #include "llvm/ADT/APFloat.h" 68 HalfFormat = &llvm::APFloat::IEEEhalf; 69 FloatFormat = &llvm::APFloat::IEEEsingle; 70 DoubleFormat = &llvm::APFloat::IEEEdouble; 71 LongDoubleFormat = &llvm::APFloat::IEEEdouble;
|
/external/clang/lib/AST/ |
ExprConstant.cpp | 53 using llvm::APFloat; 368 OptionalDiagnostic &operator<<(const APFloat &F) { 753 APFloat FloatReal, FloatImag; 755 ComplexValue() : FloatReal(APFloat::Bogus), FloatImag(APFloat::Bogus) {} 759 APFloat &getComplexFloatReal() { return FloatReal; } 760 APFloat &getComplexFloatImag() { return FloatImag; } [all...] |
APValue.cpp | 1 //===--- APValue.cpp - Union class for APFloat/APSInt/Complex -------------===// 193 ((APFloat*)(char*)Data)->~APFloat(); 262 static double GetApproxValue(const llvm::APFloat &F) { 263 llvm::APFloat V = F; 265 V.convert(llvm::APFloat::IEEEdouble, llvm::APFloat::rmNearestTiesToEven,
|
/external/clang/lib/CodeGen/ |
CodeGenTypes.cpp | 273 if (&format == &llvm::APFloat::IEEEhalf) { 279 if (&format == &llvm::APFloat::IEEEsingle) 281 if (&format == &llvm::APFloat::IEEEdouble) 283 if (&format == &llvm::APFloat::IEEEquad) 285 if (&format == &llvm::APFloat::PPCDoubleDouble) 287 if (&format == &llvm::APFloat::x87DoubleExtended)
|