reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

Declarations

tools/clang/include/clang/Basic/FixedPoint.h
  123    APFixedPoint convert(const FixedPointSemantics &DstSema,

References

tools/clang/lib/AST/ExprConstant.cpp
12311     APFixedPoint Result = Src.convert(DestFXSema, &Overflowed);
12355                               .convert(ResultFXSema, &ConversionOverflow);
tools/clang/lib/Basic/FixedPoint.cpp
  155   APFixedPoint ConvertedThis = convert(CommonFXSema);
  156   APFixedPoint ConvertedOther = Other.convert(CommonFXSema);
  255   return APFixedPoint(Value, IntFXSema).convert(DstFXSema, Overflow);
tools/clang/unittests/Basic/FixedPointTest.cpp
  381   ASSERT_EQ(Fixed.convert(Dst), Expected);
  389   ASSERT_EQ(Fixed.convert(Dst), APFixedPoint::getMin(Dst));
  397   ASSERT_EQ(Fixed.convert(Dst), APFixedPoint::getMax(Dst));
  606   APFixedPoint UFixed = Fixed.convert(getUSAccumSema());
  614   ASSERT_EQ(Val.convert(getLFractSema()).getValue(), -(1ULL << 31));
  617   ASSERT_EQ(Val.convert(getSAccumSema()).getValue(), -(1ULL << 15));
  620   ASSERT_EQ(Val.convert(getAccumSema()).getValue(), -(1ULL << 31));
  624   ASSERT_EQ(Val.convert(getLFractSema()).getValue(), 1ULL << 30);
  627   ASSERT_EQ(Val.convert(getSAccumSema()).getValue(), 255 << 7);
  630   ASSERT_EQ(Val.convert(getAccumSema()).getValue(), 65535 << 15);
  634   ASSERT_EQ(Val.convert(getUSAccumSema()).getValue(), 255 << 8);
  637   ASSERT_EQ(Val.convert(getUAccumSema()).getValue(), 65535ULL << 16);
  640   ASSERT_EQ(Val.convert(getULAccumSema()).getValue().getZExtValue(),