HomeSort by relevance Sort by last modified time
    Searched refs:APFloat (Results 1 - 25 of 104) sorted by null

1 2 3 4 5

  /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);
37 APFloat::roundingMode rdmd = APFloat::rmNearestTiesToEven;
42 EXPECT_FALSE(APFloat(APFloat::IEEEsingle, MinNormalStr).isDenormal())
    [all...]
  /external/llvm/include/llvm/ADT/
APFloat.h 1 //== llvm/Support/APFloat.h - Arbitrary Precision Floating Point -*- C++ -*-==//
125 class APFloat {
182 APFloat(const fltSemantics &); // Default construct to 0.0
183 APFloat(const fltSemantics &, StringRef);
184 APFloat(const fltSemantics &, integerPart);
185 APFloat(const fltSemantics &, fltCategory, bool negative);
186 APFloat(const fltSemantics &, uninitializedTag);
187 APFloat(const fltSemantics &, const APInt &);
188 explicit APFloat(double d);
189 explicit APFloat(float f)
    [all...]
  /external/llvm/lib/Support/
APFloat.cpp 1 //===-- APFloat.cpp - Implement APFloat class -----------------------------===//
15 #include "llvm/ADT/APFloat.h"
52 const fltSemantics APFloat::IEEEhalf = { 15, -14, 11 };
53 const fltSemantics APFloat::IEEEsingle = { 127, -126, 24 };
54 const fltSemantics APFloat::IEEEdouble = { 1023, -1022, 53 };
55 const fltSemantics APFloat::IEEEquad = { 16383, -16382, 113 };
56 const fltSemantics APFloat::x87DoubleExtended = { 16383, -16382, 64 };
57 const fltSemantics APFloat::Bogus = { 0, 0, 0 };
70 const fltSemantics APFloat::PPCDoubleDouble = { 1023, -1022 + 53, 53 + 53 }
    [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/llvm/lib/Target/R600/
AMDGPUMCInstLower.cpp 44 const APFloat &FloatValue = MO.getFPImm()->getValueAPF();
45 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 744 APFloatVal = APFloat(BitsToDouble(HexIntToVal(TokStart+2, CurPtr)));
745 return lltok::APFloat;
754 APFloatVal = APFloat(APFloat::x87DoubleExtended, APInt(80, Pair));
755 return lltok::APFloat;
759 APFloatVal = APFloat(APFloat::IEEEquad, APInt(128, Pair));
760 return lltok::APFloat;
764 APFloatVal = APFloat(APFloat::PPCDoubleDouble, APInt(128, Pair))
    [all...]
  /external/llvm/include/llvm/IR/
Type.h 18 #include "llvm/ADT/APFloat.h"
169 case HalfTyID: return APFloat::IEEEhalf;
170 case FloatTyID: return APFloat::IEEEsingle;
171 case DoubleTyID: return APFloat::IEEEdouble;
172 case X86_FP80TyID: return APFloat::x87DoubleExtended;
173 case FP128TyID: return APFloat::IEEEquad;
174 case PPC_FP128TyID: return APFloat::PPCDoubleDouble;
Constants.h 24 #include "llvm/ADT/APFloat.h"
234 APFloat Val;
240 ConstantFP(Type *Ty, const APFloat& V);
258 static ConstantFP *get(LLVMContext &Context, const APFloat &V);
263 static bool isValueValidForType(Type *Ty, const APFloat &V);
264 inline const APFloat &getValueAPF() const { return Val; }
281 bool isExactlyValue(const APFloat &V) const;
285 APFloat FV(V);
286 FV.convert(Val.getSemantics(), APFloat::rmNearestTiesToEven, &ignored);
563 /// type, return the specified element as an APFloat
    [all...]
  /external/llvm/lib/Analysis/
ConstantFolding.cpp     [all...]
  /external/llvm/lib/Target/MBlaze/
MBlazeMCInstLower.cpp 153 APFloat FVal = MO.getFPImm()->getValueAPF();
154 FVal.convert(APFloat::IEEEsingle, APFloat::rmTowardZero, &ignored);
  /external/llvm/lib/ExecutionEngine/
ExecutionEngine.cpp 603 APFloat apf = APFloat::getZero(APFloat::x87DoubleExtended);
606 APFloat::rmNearestTiesToEven);
618 APFloat apf = APFloat::getZero(APFloat::x87DoubleExtended);
621 APFloat::rmNearestTiesToEven);
635 APFloat apf = APFloat(APFloat::x87DoubleExtended, GV.IntVal)
    [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 171 APFloat(DestTy->getFltSemantics(),
573 APFloat Val = FPC->getValueAPF();
574 Val.convert(DestTy->isHalfTy() ? APFloat::IEEEhalf :
575 DestTy->isFloatTy() ? APFloat::IEEEsingle :
576 DestTy->isDoubleTy() ? APFloat::IEEEdouble :
577 DestTy->isX86_FP80Ty() ? APFloat::x87DoubleExtended :
578 DestTy->isFP128Ty() ? APFloat::IEEEquad :
579 DestTy->isPPC_FP128Ty() ? APFloat::PPCDoubleDouble :
580 APFloat::Bogus,
581 APFloat::rmNearestTiesToEven, &ignored)
    [all...]
Constants.cpp 120 APFloat::getZero(APFloat::IEEEhalf));
123 APFloat::getZero(APFloat::IEEEsingle));
126 APFloat::getZero(APFloat::IEEEdouble));
129 APFloat::getZero(APFloat::x87DoubleExtended));
132 APFloat::getZero(APFloat::IEEEquad))
    [all...]
  /external/llvm/lib/Transforms/InstCombine/
InstCombineAddSub.cpp 32 // The constructor has to initialize a APFloat, which is uncessary for
46 void set(const APFloat& C);
67 APFloat *getFpValPtr(void)
68 { return reinterpret_cast<APFloat*>(&FpValBuf.buffer[0]); }
69 const APFloat *getFpValPtr(void) const
70 { return reinterpret_cast<const APFloat*>(&FpValBuf.buffer[0]); }
72 const APFloat &getFpVal(void) const {
77 APFloat &getFpVal(void)
86 // True iff FpValBuf contains an instance of APFloat.
95 AlignedCharArrayUnion<APFloat> FpValBuf
    [all...]
  /frameworks/compile/slang/
slang_rs_reflection_base.cpp 172 llvm::APFloat apf = Val.getFloat();
173 if (&apf.getSemantics() == &llvm::APFloat::IEEEsingle) {
  /external/clang/lib/AST/
ExprConstant.cpp 53 using llvm::APFloat;
328 OptionalDiagnostic &operator<<(const APFloat &F) {
660 APFloat FloatReal, FloatImag;
662 ComplexValue() : FloatReal(APFloat::Bogus), FloatImag(APFloat::Bogus) {}
666 APFloat &getComplexFloatReal() { return FloatReal; }
667 APFloat &getComplexFloatImag() { return FloatImag; }
    [all...]
APValue.cpp 1 //===--- APValue.cpp - Union class for APFloat/APSInt/Complex -------------===//
193 ((APFloat*)(char*)Data)->~APFloat();
228 static double GetApproxValue(const llvm::APFloat &F) {
229 llvm::APFloat V = F;
231 V.convert(llvm::APFloat::IEEEdouble, llvm::APFloat::rmNearestTiesToEven,
  /external/clang/include/clang/Lex/
LiteralSupport.h 21 #include "llvm/ADT/APFloat.h"
91 /// the specified APFloat fltSemantics (specifying float, double, etc).
93 /// set to true if the returned APFloat can represent the number in the
95 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/llvm/lib/CodeGen/SelectionDAG/
SelectionDAG.cpp 75 bool ConstantFPSDNode::isExactlyValue(const APFloat& V) const {
80 const APFloat& Val) {
84 APFloat Val2 = APFloat(Val);
87 APFloat::rmNearestTiesToEven,
    [all...]
  /external/clang/lib/CodeGen/
CodeGenTypes.cpp 268 if (&format == &llvm::APFloat::IEEEhalf) {
274 if (&format == &llvm::APFloat::IEEEsingle)
276 if (&format == &llvm::APFloat::IEEEdouble)
278 if (&format == &llvm::APFloat::IEEEquad)
280 if (&format == &llvm::APFloat::PPCDoubleDouble)
282 if (&format == &llvm::APFloat::x87DoubleExtended)
  /external/llvm/lib/Target/Hexagon/
HexagonMCInstLower.cpp 61 APFloat Val = MO.getFPImm()->getValueAPF();

Completed in 1041 milliseconds

1 2 3 4 5