Lines Matching defs:Other
73 int APFixedPoint::compare(const APFixedPoint &Other) const {
75 APSInt OtherVal = Other.getValue();
79 int CommonLsb = std::min(getLsbWeight(), Other.getLsbWeight());
80 int CommonMsb = std::max(getMsbWeight(), Other.getMsbWeight());
87 OtherVal = OtherVal.shl(Other.getLsbWeight() - CommonLsb);
162 const FixedPointSemantics &Other) const {
163 int CommonLsb = std::min(getLsbWeight(), Other.getLsbWeight());
165 Other.getMsbWeight() - Other.hasSignOrPaddingBit());
168 bool ResultIsSigned = isSigned() || Other.isSigned();
169 bool ResultIsSaturated = isSaturated() || Other.isSaturated();
174 Other.hasUnsignedPadding() && !ResultIsSaturated;
187 APFixedPoint APFixedPoint::add(const APFixedPoint &Other,
189 auto CommonFXSema = Sema.getCommonSemantics(Other.getSemantics());
191 APFixedPoint ConvertedOther = Other.convert(CommonFXSema);
211 APFixedPoint APFixedPoint::sub(const APFixedPoint &Other,
213 auto CommonFXSema = Sema.getCommonSemantics(Other.getSemantics());
215 APFixedPoint ConvertedOther = Other.convert(CommonFXSema);
235 APFixedPoint APFixedPoint::mul(const APFixedPoint &Other,
237 auto CommonFXSema = Sema.getCommonSemantics(Other.getSemantics());
239 APFixedPoint ConvertedOther = Other.convert(CommonFXSema);
292 APFixedPoint APFixedPoint::div(const APFixedPoint &Other,
294 auto CommonFXSema = Sema.getCommonSemantics(Other.getSemantics());
296 APFixedPoint ConvertedOther = Other.convert(CommonFXSema);